feat: Add More Collapsed Navigation Icon Options for Navigation Block #70086
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Closes #61755
Why?
This PR introduces additional icon options for the collapsed state of the Navigation block. It expands beyond the current two icons by allowing block users to choose from a broader set of icons, offering more flexibility in design and user interface customization.
How?
Added new SVG icons inside
edit/overlay-menu-icon.js
, expanding the visual choices for the collapsed navigation menu.Updated
overlay-menu-preview.js
to include additionalToggleGroupControlOption
entries for each new icon, allowing users to select them via the block editor UI.Modified
index.php
to render the correct icon on the front end based on the selected option, ensuring consistency between the editor preview and the published content.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
https://www.loom.com/share/6d076126729144e492b85480debbe666?sid=0ccf0a44-13d3-4d20-b583-7b74770e3b74