-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
fix(theme): mobile drawer sidebar should use native modal dialog and backdrop #10706
base: main
Are you sure you want to change the base?
Conversation
⚡️ Lighthouse report for the deploy preview of this PR
|
b175464
to
36c07aa
Compare
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
36c07aa
to
dd443d9
Compare
@slorber : |
dd443d9
to
0e38363
Compare
This uses the `<dialog>` element with `showModal()` method, so that we can leverage the browser's built-in ways to make this dialog modal, including keyboard handling (Esc), backdrop and focus trap. Fixes the issue that it was possible to tab outside the dialog while it was open. This removes the backdrop component, as the `<dialog>` element comes with a backdrop built-in, that is styled via CSS instead.
0e38363
to
dbee3b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
This uses the
<dialog>
element withshowModal()
method, so that we can leverage the browser's built-in ways to make this dialog modal, including keyboard handling (Esc), backdrop and focus trap.Fixes the issue that it was possible to tab outside the dialog while it was open.
Rmoves the backdrop component, as the
<dialog>
element comes with a backdrop built-in, that is styled via CSS instead.fixes #9457
Pre-flight checklist
Motivation
Test Plan
Test links
Deploy preview: https://deploy-preview-10706--docusaurus-2.netlify.app/
Related issues/PRs