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
In earlier versions of Gutenberg certain icons appear differently in the editor than in the front end.
eg Columns variations.
In the block editor the icons are not filled with black
Problem with Comment Author Name icon
With Gutenberg 11.9.0 the icon for the new Comment Author Name block is visible in the block icon block in the editor but not in other blocks nor on the front end.
Here we see the fill='#FFFFFF' attribute on the SVG tag. For the block info block the icon is invisible.
Using the inspector and changing this value to #CCCCCC, for example, allows us to see the icon in the block editor.
Alternatively we can set a background colour.
This problem was originally mentioned in #50 (comment)
Requirement
Icons should look the same in the editor and the front end
Proposed solution
Discover what's needed to style icons that have the following attributes that need a little more care and attention: fill, fill-rule, cllp-rule etc
Implement appropriate CSS
The text was updated successfully, but these errors were encountered:
Discover what's needed to style icons that have the following attributes that need a little more care and attention: fill, fill-rule, cllp-rule etc
Adding the fill: currentColor; property to the style.scss files which are procesed into style-index.css half fixed the problem.
eg This was the CSS for the block list block.
See also bobbingwide/oik-bob-bing-wide#46 (comment) where icons weren't visible.
For one icon, it was the fill-rule: evenOdd property that prevented the icon from being visible on a white background.
Problems with Columns variations icons
In earlier versions of Gutenberg certain icons appear differently in the editor than in the front end.
eg Columns variations.
In the block editor the icons are not filled with black
Problem with Comment Author Name icon
With Gutenberg 11.9.0 the icon for the new Comment Author Name block is visible in the block icon block in the editor but not in other blocks nor on the front end.
The SVG for the Comment Author Name block is
Here we see the
fill='#FFFFFF'
attribute on the SVG tag. For the block info block the icon is invisible.Using the inspector and changing this value to
#CCCCCC
, for example, allows us to see the icon in the block editor.Alternatively we can set a background colour.
This problem was originally mentioned in #50 (comment)
Requirement
Proposed solution
The text was updated successfully, but these errors were encountered: