-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add filter to replace local nav bar mobile menu icon #480
Conversation
0edbac8
to
db61241
Compare
I tried testing this with main@trunk and showcase@trunk. I wasn't able to get it to work. The function was called but failed on the nested ifs. Do I have to do something to those themes to get it to work? |
Yep, the nav blocks need a new setting |
Yep! Try now. |
LGTM. Should this be rolled out for the whole site at once? |
It's very cool that this is using the HTML API from a developer relations perspective. A great, real-world example for folks to see. |
Closes #463
Implementation taken from @ndiego's comment, with a couple of minor changes. The outer block is the
wporg/local-navigation-bar
which wraps a navigation block.Requires a navigation to have the 3 bar menu icon set (
"icon":"menu"
), so that the SVG path can be changed to use a caret instead. All the repos where the local nav bar is used will need to have this updated, as they currently have"hasIcon": false
and use the word 'Menu' (Developer, Documentation, Showcase, Main).Screenshots
Testing
Easiest to try it out on WordPress/wporg-showcase-2022#254