-
Notifications
You must be signed in to change notification settings - Fork 30
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
Accessibility: Disabled controls should not receive keyboard focus #206
Comments
We use aria-disabled primarily for screen reader users, there is a small cost to non screen reader keyboard users. References: Glossary:
Interactive content with a When given the We use Icons and screen reader text have been added to buttons throughout to show sighted users that an element is locked. On pagination left/right ends there is no icon to explain why the button is disabled, the user must infer from the 1 of x labels. That these disabled items can receive focus is by design, it allows screen reader users to use tab and screen reader cursors to perceive disabled elements. Articles about why Articles on why disabled buttons generally suck: We had a long discussion here about greyed vs opaque disabled buttons. Adding warnings about what the users should do when they accidentally click a disabled button was discussed in the same issue on disabled buttons and resulted only in the reinclusion of the adapt-contrib-instructionError plugin for disabled question submit buttons. We could go further and add notify errors for all disabled buttons, but I think that is quite overkill with the locked icons, additional screen reader text and the aria-disabled buttons. I do not at all agree with the advice, it would worsen the experience of screen reader users for a negligible benefit to keyboard tab users i.e. that they would not have to tab through a few disabled buttons. Previous issue #108 |
Thanks, @oliverfoster . I'll include this in our response to the a11y consultants. |
Wcag 2.4.3 doesn't mention disabled buttons as far as I can tell https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html |
Subject of the issue
We have recently had an accessibility audit for one of our clients. The consulting agency flagged the following issue regarding the disabled View button:
Their recommendation:
Type: WCAG 2
Principle: Operable
Level: A
Severity: Medium
Guideline: 2.4 Navigable
Success Criteria: 2.4.3 Focus Order (A)
Question
Do we agree with this advice? If so, there are several other places that would need to be updated in plugins and core.
Screenshots
The text was updated successfully, but these errors were encountered: