tobimori / kirby-icon-field

🏷️ A simple Icon field plugin for Kirby CMS.
https://getkirby.com/plugins/tobimori/icon-field
MIT License
38 stars 4 forks source link

Forced icon styling #12

Open nilshoerrmann opened 11 months ago

nilshoerrmann commented 11 months ago

Kirby 4 has this definition in its styles:

:where(svg) {
  fill: currentColor;
}

This can render outline icons into white/black boxes.

I'm not sure if there is a way to reset this for icons within this plugin's components and default to the fill attribute in the markup. But it would be great if:

  1. there was a setting for fill in the blueprint or
  2. there was a note in the readme how to prevent this with a custom panel CSS.