Skip to content
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

2.4.11/2.4.12 Focus Appearance: consider distance between component and indicator #1382

Closed
Jym77 opened this issue Sep 3, 2020 · 6 comments

Comments

@Jym77
Copy link

Jym77 commented Sep 3, 2020

2.4.11/2.4.12 has no requirement on where the focus indicator should be. It is possible to pass these SC by having a line of dots at the top of the page, each dot "lighting up" when a given UI component has focus.

Reading the Understanding document, it feels that the intend is to have the focus indicator close to the component (border, shadow, …) but nothing in the SC requires it.

There are valid cases of "displaced" focus indicators (e.g., a hidden play button show focus with a play icon on top of a video), so I'm not fully sure how to allow the valid cases and prevent the bad ones…

@JAWS-test
Copy link

Even if the focus indicator is displayed with the element itself, it may be unclear to which element it refers, see #936 (comment)

@detlevhfischer
Copy link
Contributor

detlevhfischer commented Sep 9, 2020

Proposed working group answer:
Thank you for your comment.
The glossary definition of focus explains that it is the "point where the user’s input interacts with the web page". This implies that the focus is near or around the element in focus. The case of the displaced focus indicator that you mention would be valid where the element with the visible focus (say, the play button) matches the function of the element that actually activates the function.

@alastc
Copy link
Contributor

alastc commented Nov 10, 2020

The group met today and agreed the following response:


The glossary definition of focus explains that it is the "point where the user’s input interacts with the web page". This implies that the focus indicator is near or around the element in focus.
If you don't consider this issue to be addressed please re-open the issue.

@alastc alastc closed this as completed Nov 10, 2020
@mraccess77
Copy link

I agree with the proposed response that programmatic focus and visible focus need to be close to support users of screen magnification and those that overwrite focus indicators with custom ones in style sheets. So while a displayed indicator is ok for some people indicators that are close to the control are needed for users with low vision.

@patrickhlauke
Copy link
Member

@mraccess77 I'd note that it gets tricky in situations where, by design, the programmatically focused element (i.e. the element that is the document.activeElement, if we're talking HTML specifically) is different from what "logically" has focus (as is the case with some ARIA-fied widgets that use aria-activedescendant or similar). there are legit cases where programmatic and logical focus will not be on the exact same element - so it will be tricky to mandate anything that says otherwise. would something that completely messes up, say, screen magnification fall under the general "accessibility supported" aspect somehow, perhaps? and where / which SC would one fail gross mismatches/problems of that nature?

@mraccess77
Copy link

I'd consider active-descendant to be the point of programmatic focus - so no issue there. I agree there could be edge cases - but in general I would not want something that allowed the focused element and visual indicator to be too far from one another as a general rule because how would magnification software know where that is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants