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

[a11y] challeng-the-default page contains aria-hidden elements that are still keyboard focusable #15137

Closed
Tracked by #14773
alexgibson opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
a11y Issues related to accessibility Bug 🐛 Something's not working the way it should Help wanted 👋 Community contributions welcome P3 Third level priority - Nice to have

Comments

@alexgibson
Copy link
Member

alexgibson commented Sep 13, 2024

Description

Describe the issue that you're seeing.

Steps to reproduce

I tested this using VoiceOver on macOS:

  1. Open https://www.mozilla.org/de/firefox/challenge-the-default/
  2. Enable VO via command + F5.
  3. Observe that the browser close button ("X") is ignored as part of the reading order as expected.
  4. Reload the page and start tabbing through focus-able elements.
  5. Observe that the "X" button is still focus-able and will be read aloud by the screen reader when focused, despite it containing aria-hidden.

This creates a confusing state: https://dequeuniversity.com/rules/axe/4.10/aria-hidden-focus

Expected result

If an element contains aria-hidden then it should also be removed from the keyboard focus index. The down-side to this is that these "easter eggs" then also become click only.

The other option is to remove aria-hidden and then try and make these things more accessible, but I question whether that would actually improve the experience for assisted technologies. It could make things even worse.

Actual result

There are 4 elements where this problem occurs:

  1. The browser "X" close button in the hero.
  2. The "smiley face" toggles part way down the page.
  3. The cat (=^._.^=) button.
  4. The animated "challenge the default" button

image

Environment

Firefox Nightly
macOS

@alexgibson alexgibson added Bug 🐛 Something's not working the way it should a11y Issues related to accessibility labels Sep 13, 2024
@alexgibson alexgibson added P3 Third level priority - Nice to have Help wanted 👋 Community contributions welcome labels Sep 13, 2024
@alexgibson alexgibson self-assigned this Oct 8, 2024
alexgibson added a commit to alexgibson/bedrock that referenced this issue Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Issues related to accessibility Bug 🐛 Something's not working the way it should Help wanted 👋 Community contributions welcome P3 Third level priority - Nice to have
Projects
None yet
Development

No branches or pull requests

1 participant