-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: prevent navigation panel focus when hidden #29600
Site Editor: prevent navigation panel focus when hidden #29600
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @creativecoder! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
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.
Works as expected! Thanks!
✅ Chrome
✅ Firefox
✅ Edge
✅ Safari
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.
Left a minor comment, but otherwise this looks good to me!
@@ -14,27 +14,18 @@ | |||
|
|||
body.is-navigation-sidebar-open & { | |||
display: flex; | |||
|
|||
.edit-site-navigation-toggle__button { |
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.
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.
Description
Removes the site editor navigation panel from the accessibility tree when hidden, so it can't receive keyboard focus.
Also removes an unneeded border from the toggle button to improve the slide animation.
Fixes #29536
How has this been tested?
Using the keyboard to navigate through the site editor header.
Screenshots
Keyboard navigation in header menu
Remove bottom border from navigation toggle when closing panel
Types of changes
Non-breaking change
Checklist:
I've included developer documentation if appropriate.(n/a)I've updated all React Native files affected by any refactorings/renamings in this PR.(n/a)