Modal dialog for menu on small viewports #9457
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: a11y
Related to accessibility concerns of the default theme
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
On a small viewport (for example zoom on a desktop) or on mobile, the menu looks like a modal but for assistive technologies, it doesn't work like one.
menu-docusaurus.webm
Tested with Safari and VoiceOver on desktop (It's the same on a mobile screen reader)
We can also see 2 other issues:
Reproducible demo
No response
Steps to reproduce
Expected behavior
The menu should work like a modal dialog:
To improve that, using the native HTML dialog with a
showModal
is a good solution. If the native element is not adequate, a small library like a11y-dialog could helpActual behavior
The menu does not work like a modal dialog:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: