Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

v4: Improve accessible name of version dropdown in docs navbar #36504

Merged

Conversation

patrickhlauke
Copy link
Member

@patrickhlauke patrickhlauke commented Jun 4, 2022

  • add sr-only "Bootstrap", which will be part of the accessible name
  • extra sr-only text to give some context - that the dropdown is about switching versions
  • remove the redundant id/aria-labelledby for the dropdown
  • change the control from <a> to <button>

v4 port (and further tweaks) of #36495

- add separate visually-hidden "Bootstrap", which will be part of the accessible name regardless of whether the other string is visible or not (on large screen)
- extra visually-hidden text to give some context - that the dropdown is about switching versions
- remove the redundant id/aria-labelledby for the dropdown
@patrickhlauke patrickhlauke changed the title Improve accessible name of version dropdown in docs navbar v4: Improve accessible name of version dropdown in docs navbar Jun 4, 2022
@patrickhlauke
Copy link
Member Author

snuck in a last addition ... changing the control from <a> to <button> (though this does show one issue with the focus indication being very weak for buttons in the header...but will tackle this another time)

@patrickhlauke patrickhlauke force-pushed the patrickhlauke-improve-docs-navbar-version-dropdown-v4 branch from 3b7c33d to 13baad1 Compare June 5, 2022 09:17
@patrickhlauke patrickhlauke force-pushed the patrickhlauke-improve-docs-navbar-version-dropdown-v4 branch from 13baad1 to 5d3330e Compare June 5, 2022 09:24
@patrickhlauke patrickhlauke merged commit 6fd2030 into v4-dev Jun 5, 2022
@patrickhlauke patrickhlauke deleted the patrickhlauke-improve-docs-navbar-version-dropdown-v4 branch June 5, 2022 09:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants