-
Notifications
You must be signed in to change notification settings - Fork 8.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
(Accessibility) Routed tabs cause multiple failures #77828
Comments
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
One place where it looks like we're doing this is here: There may be others. @cee-chen looked at this with me on Slack in #accessibility and said:
Please check with her when addressing this to make sure there's something we can do. |
@smith, this is an old ticket. Apparently, things have changed.
Based on the screenshots above, that's not the case.
I couldn't find any example of that. Besides, I ran the test mentioned on the description and it passed |
I can confirm that tab focus order is no longer an issue - that appears to have been fixed in EUI. That being said, |
I think the best solution here would be:
|
@smith I think you and @crespocarlos are referring to two different UI items: I agree with Nathan that the two items that look like plain |
@cee-chen the asset details flyout, which is newer, is used on the hosts view: The links in the top right currently are tabs, and they don't need to be. Your screenshot is showing the inventory view flyout, which is being removed. The links shown there (Create inventory rule and Open as page) are not tabs, but APM and Uptime are. |
Ahh gotcha. Thanks for clarifying! I'd definitely like to see the top right "tabs" not be tabs! |
The top right links are in fact APM: https://github.com/elastic/kibana/blob/v8.9.0/x-pack/plugins/infra/public/components/asset_details/links/link_to_apm_services.tsx @smith, the asset details code has |
Thanks for looking @crespocarlos. I'm going to close this now. |
Issue
Routed tabs cause a WCAG A failure in several ways:
button[role="tab"]
is not a direct decedent of[role="tablist"]
<button>
inside the<a>
causes a secondary tab stop on the same-ish elementThese failures are causing a test failure in our a11y testing suite (test skipped).
Recommended fix
These tabs are only visually tabs and aren't semantically tabs. It's just some links for a navigation. EUI should be flexible enough to render this visually as tabs but semantically as navigation (by removing the
role
attributes and not rendering the<button>
). (If not, open issue against EUI.)The text was updated successfully, but these errors were encountered: