-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reports that the outlines are too distracting #2331
Comments
Any alternative focus style that is not based on color alone would be OK for a11y. In other words: it needs a shape (border, outline, underline, or any other distinguishable and meaningful shape). In the case of the Document / Block tabs, the bottom border could be enough maybe. Not sure about the panel toggles. |
I think we should introduce the |
I saw this come in yesterday: https://css-tricks.com/removing-ugly-focus-ring-keeping/ Note that I'm presenting this not as an endorsement, or as anything that I know for sure can work for us or not — simply, something to explore and decide whether it could work for us. |
Thanks for sharing it! It's good to have an external view. :) I checked the source and the demo, and the
Which is why it uses the term accessible focus and not just keyboard tabbing. It's more generic, and interacts with mouse too. :) I'd also add that it's the same code we use in Calypso: while the platform is not perfect in terms of accessibility and we have lots of work to do, that is an architectural feature that works well to address some problems, and it has been extensively tested by being in production for years. |
No, please. As I've already tried to explain, that's just based on a wrong assumption. There are a lot of people who use a mouse or other pointing devices and at the same time need a clearly visible focus style. Worth reminding all browsers have a default focus style and the real origin of this kind of issues is when designers want to reset it with |
I read the analysis there.
Let's merge that as it provides more options, and then discuss on the designs case by case. |
@afercia what about those with visual issues that would find the extra clutter distracting. For example neuro-processing complications? |
@karmatosed the best option would be: do nothing and remove any We should really try to distinguish how it looks from what it does. Instead of removing it, it'd say the best approach would be make it look better. Form follows function, no? FWIW I'm not the author of the focus style on the panel toggles and I'm not saying I like it 🙂
Not exactly. What it does, it's detecting when the following keys are used So I'm strongly opposed to removing the focus style under any circumstances. Making it better is very welcome. For the one interested, some history here:
|
Without taking any side of the argument (I can live with the lingering focus outline, even if I don't think it's pretty) — I would like to just note that the native behavior changes as soon as you style an element like the
For me, personally, it's the lingering outline that feels distracting, not the outline itself. If there was an accessible way to get rid of the lingering outline (emulate native behavior), I'd be fine with even a much heavier focus outline than we do now. |
This is not correct. :) It doesn't remove anything. It adds a class to the basic level: it's then up to the UI to decide if to use That's why I'm referring this to an architecture piece that allows more granularity. Your interpretation as the component "removing the focus style" is not a correct reading — thus there's no reason to be against it. |
@folletto 🙂 That's not correct. On #846 what the lines like these ones do in your opinion?
They apply the focus style on some elements just when using the keyboard. For example. the block mover buttons (and several other buttons):
|
When I mentioned "we should take that approach" I meant the approach, not the specific of the design changes — which, as I illustrated above, must be entirely a different consideration. We shouldn't conflate the two. Yet, now I understand our misunderstanding, so let me clarify that:
|
🙂 I don't understand this distinction. What you call "the approach" is meant to be actually used, no? And its intended usage is to remove the focus style. Since I really hope the second thing is not going to happen, I don't see why the functionality should be merged. |
I wish this would be solved with CSS but I'm not sure if that's currently possible. I'm not sure what If my vote count I'd go without JS and let the button on click have the focus styles. But in the same time make focus styles as good looking as possible. Here is list of sources:
|
I think it's more a design problem than the functionality itself. And the design can be improved. The focus style doesn't necessarily need to be a rectangular outline around an element. For the panel toggles for example, there are already some well established patterns in WordPress, see what the Customizer and Press This use: |
@avocadesign I agree there's a lot going on there, especially with the link dialog. But there are multiple tickets and pull requests in progress to alleviate that, including these:
Let's keep this ticket focused on the focus outlines. |
Absolutely. That's a good example.
…On Aug 11, 2017 10:12 AM, "Andrea Fercia" ***@***.***> wrote:
I think it's more a design problem than the functionality itself. And the
design can be improved. The focus style doesn't necessarily need to be a
rectangular outline around an element. For the panel toggles for example,
there are already some well established patterns in WordPress, see what the
Customizer and Press This use:
[image: screen shot 2017-08-11 at 08 48 00]
<https://user-images.githubusercontent.com/1682452/29204070-157978ee-7e75-11e7-99c1-85a5a664fd7f.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2331 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvG_9Vjr-_tVPct9kgsT5G2ztXRnkf1ks5sW_7cgaJpZM4OzLO_>
.
|
@jasmussen What about unfocused outlines as well? Just to give some kind of an indicator about the space it occupies in the editor. |
Unfocused outlines could absolutely go hand in hand with a better outline design in general. That could be something to explore. |
Reading through this thread, it seems like a design issue that got derailed a bit into functionality. As far as I can tell, the operation of the :focus states is totally fine, but there are some issues with the design. I agree totally with @afercia that we should make better use of existing patterns elsewhere in WP. That will help with overall design comprehension since there will be better uniformity in behavior throughout the application. The presence of the focus highlighting is absolutely critical for accessibility. But certainly the design can be improved. |
An example here:
I assume they are being added for a11y reasons, but I have to admit yes they are strong. Another area you can see this:
How can we iterate here? What room is there to reduce this? @jasmussen and @afercia, interested in your input.
The text was updated successfully, but these errors were encountered: