-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request: Display outlines only at keyboard interaction #1289
Comments
Hi, I understand your need, but this really goes against accessibility standards. In general the focus must be visible(determinable) without user interaction. On that ground I would reject the request here. cheers |
Hi, As per the comment abnove, I am closing this issue. Best Regards, Hristo |
@vladimir-velinov: Thank you for the answer. Yes, I agree that the outline should be always visible for inputs. Apart from that, and also apart from the outline being displayed on the first focusable element when the page is ready, I request again to consider to:
This is typically how most browsers handle the outline on "native" HTML elements which can be tested here. Chrome on Windows, for example, when interacted via a mouse, doesn't display the outline on "native" buttons, radios, checkboxes, etc., whereas the outline is always shown on select and input elements. I'd propose to adopt browser's heuristic by making use of The basic polyfill for focus-ring from WICG explains the issue further and also why focus-ring was introduced in the first place. @robdodson also explains it nicely in this video: https://youtu.be/ilj2P5-5CjI |
I agree with @boghyon on the idea. Maybe a better/nicer/more discrete/less invasive implementation would be acceptable ? |
Actually, I'm curious which part of a11y standards supports the above requirement, or that focus indicator needs to be visualized also in pointer mode (mouse or finger). Just went through various WCAG 2.x success criteria but couldn't find any statements that hiding the focus indicator in pointer mode (not completely, as described in #1289 (comment)) would fail the success criterion.[1] And afaik, other standards such as VPAT or BITV base on WCAG as well when it comes to web content. If it's not clearly defined by any standards, wouldn't it be acceptable to make the current behavior optional while adapting UA's behavior as default? Also worth reading:
|
If anyone is interested: UI5 Web Components will look into the idea of adopting the |
OpenUI5 version
All
Browser/version (+device/version)
URL (minimal example if possible)
https://openui5.hana.ondemand.com/#/entity/sap.m.IconTabBar/sample/sap.m.sample.IconTabBar
Any other information? (attach screenshot if possible)
This feature request may be controversial, but IMHO it is aesthetically unappealing to see those dotted lines every time wherever I click. This unfortunately encourages app developers to remove the focus ring completely. [1] [2] [3] [4]
It would be nice, if outlines are shown only when the user presses certain keys (like tab, arrows, etc.), and are hidden again when the user interacts with a mouse. I am not asking for complete removal of the focus indication. I hope this feature request is not against some a11y standards.
Thank you.
Edit: fixed broken screenshot link, added questions people attempting to remove the focus ring completely.
The text was updated successfully, but these errors were encountered: