-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: a11yRelated to accessibility concerns of the default themeRelated to accessibility concerns of the default theme
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
Thank you, maintainers and contributors, for this useful framework!
Bug: Keyboard focus is lost when exiting the dropdown (e.g. language switcher).
Docusaurus.-.Dropdown.Keyboard.Focus.Bug.cut.mp4
Reproducible demo
https://stackblitz.com/edit/github-segjfa?file=docusaurus.config.js
Steps to reproduce
- Press
Tab,Tab, ... to focus language switcher. - Press
Enterto open dropdown. - Press
Tab,Tab, ... to move focus. - When exiting the dropdown, focus is lost.
Expected behavior
Focus moves to theme switcher.
Actual behavior
Focus is lost.
Your environment
- Public source code: https://github.com/markuplint/markuplint/tree/dev/website
- Public site URL: https://markuplint.dev/
- Docusaurus version used: 2.2.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 110, Node.js 16.16.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11
Self-service
- I'd be willing to fix this bug myself.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: a11yRelated to accessibility concerns of the default themeRelated to accessibility concerns of the default theme