Icon Color Not Working If Background Color Set
-
I really like this block. The only issue I have encountered is that if you set both a background color, and an icon color, only the background color shows. The icon color used is white in my case (CSS uses color: currentColor). If only an icon color is used, the selected foreground color is used, default or otherwise.
In the editor, the correct icon color is displayed.
If the code in src/save.js on (or about) line 129 is modified to add ‘!important’, and you rebuild and update the page, the correct color is shown in the editor, and when the page is viewed.
I do not have this running on a publicly visible site. I can share a screen capture if that helps.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Icon Color Not Working If Background Color Set’ is closed to new replies.