-
Notifications
You must be signed in to change notification settings - Fork 0
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
Block list block not showing icons with Gutenberg 11.9.0 #50
Comments
The following blocks don't work with Gutenberg 11.9.0
The toolbar icon blocks do work. |
I changed the code from using
|
The changes for block icons work for core blocks which are now SVG icons, but not for dashicons. Proposed solutionThe HTML that's saved for an icon which is a dashicon is like this:
In the server we can implement a callback function for the block to make it dynamic. The same callback routine can be used for block icon, block info and block list. Note: In the future we can replace the whole block with the dash icon SVG logic from oik-bob-bing-wide. |
v1.3.0 is being alpha tested in blocks.wp-a2z.org |
With Gutenberg 11.9.0 the block list block displays icons in the editor but they're missing in the front end.
They look OK in the Visual editor.
If you switch to the Code editor the SVGs are gone.
Note: Some icons don't even appear in the block list in the editor. eg. Comment Author Name
This could be a separate issue.
The blockinfo block doesnt display the icon but the blockicon block does.
However the SVG's missing when you switch to the Code editor.
And it's not saved in the post.
The text was updated successfully, but these errors were encountered: