Allow developers to add custom SVG for navigation open and close icons #32413
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
During developing a block theme, I came to add a site header and navigation. I added navigation using the new navigation block. The style of the svg in the navigation doesn't work well with my themes design and I want to change it. I looked into the server rendering of the block and was frustrated to see I was unable to switch out the svg for my own using a filter.
Would it be possible to filter the returned svg html. Is there a reason it shouldn't be possible or is there another way to do this that's better than adding a filter?
What is your proposed solution?
I'm not 100% up to speed with code standard/style in the block rendering files so this is just to illustrate the above and proposed solution.
Followed by the below in the
gutenberg_render_block_core_navigation
function.The text was updated successfully, but these errors were encountered: