You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output for the block list block ( oik-block/blocklist ) assumes that the dashicons CSS is enqueued.
It appears that this is no longer the case with Gutenberg 9.1.0.
The result is that the icons for blocks which use dashicons are not displayed on the front end.
It would appear that the fix to this would be to enqueue dashicons.
The text was updated successfully, but these errors were encountered:
The solution to enqueue dashicons for every page is not good for performance.
Two options
Change dashicons to use SVG icons
Only enqueue dashicons when the dashicon block is present.
Option two would be quicker to implement.
Option one would be better overall.
In the mean time, the change to not enqueue dashicons needs to be undone.
We can do this for the blockicon block,
but not for the blockinfo or blocklist blocks since it's not so easy to parse the HTML to find which blocks use dashicons.
Only enqueue dashicons when the dashicon block is present.
Do this when we know there's a blockicon but can't determine the name of the icon from the block's registration.
The output for the block list block ( oik-block/blocklist ) assumes that the dashicons CSS is enqueued.
It appears that this is no longer the case with Gutenberg 9.1.0.
The result is that the icons for blocks which use dashicons are not displayed on the front end.
It would appear that the fix to this would be to enqueue dashicons.
The text was updated successfully, but these errors were encountered: