-
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
Get Navigation overlay icons from block editor settings #51527
Conversation
Todo
Pinging @ryanwelcher here who has done a lot of experimenting with the editor and might have some insight on how we might achieve these things. Also @ajlende who has worked a lot with SVG in his Duotone work and might have ideas. |
Size Change: +18 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
I wonder whether we need an API to register icons for the editor. Something like register_editor_icon(
name: 'myicon',
label: 'My Icon',
svg: // SVG markup here
); Then we can sanitize the On the block render PHP side we can simply access the icons when we need them and render them with On the JS side we could access the registered icons via an API and render them with Once done we could simply have an editor setting for |
Let's wait on the outcome of #53510. If that gets implemented we can implement the solution here. |
We can come back to this if/when an Icon API becomes available. |
What?
Experiment relating to #37930
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast