-
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
Navigation Screen: Consolidate menu name and switcher #34786
Conversation
2b58ff5
to
efd3784
Compare
Size Change: +307 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
a11y question: Should we display visually hidden "Editing: {menu.name}" text near the visible menu name? |
efd3784
to
16e81a6
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.
Nice job!
The dropdown and top bar don't look good when the items have super long names, but since it's an edge case shared with the general components, I'll create a new issue.
Thanks, @javierarce. There's already an issue for long menu names - #34512. |
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.
Thanks for the reviews, @javierarce, and @getdave ❤️ |
* trunk: (74 commits) Update docs for ClipboardButton component (#34711) Post Title Block: add typography formatting options (#31623) Bump plugin version to 11.5.0 Navigation Screen: Adjust header toolbar icon styles (#34833) Fix the parent menu item field in REST API responses (#34835) Rewrite FocusableIframe as hook API (#26753) Create Block: Remove wp-cli callout since not recommended and outdated (#34821) Global Styles: Fix dimensions panel default controls display (#34828) [RNMobile][Embed block] Enable embed preview for Instagram and Vimeo providers (#34563) Increase Link UI search results to 10 on Nav Editor screen (#34808) Prevent welcome guide overflow x scroll (#34713) Enable open on click for Page List inside Navigation. (#34675) [RNMobile] [Embed block] - Unavailable preview fallback bottom sheet title update (#34674) Add missing field _invalid in menu item REST API (#34670) Fix Dropdown/DropdownMenu toggle closing in all UAs (#31170) Navigation submenu block: replace global shortcut event handlers with local ones (#34812) Navigation Screen: Consolidate menu name and switcher (#34786) Remove parent and position validation from menu item REST API endpoint (#34672) Clean theme data when switching themes in the customizer (#34540) Components: add reset timeout to ColorPicker's copy functionality. (#34601) ...
Description
Part of #31241.
PR combines the menu name and switcher into a single component. It also introduces a new top-level "New menu" button.
P.S. Header menu actions will center on small screens once #34619 is merged.
How has this been tested?
The e2e tests are passing.
Screenshots
CleanShot.2021-09-14.at.14.26.22.mp4
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).