Is there a way to undo or delete fill: currentColor?
.svg-icon * {
fill: currentColor;
}
.svg-icon.iconLogoGlyph * {
fill: inherit;
}
<svg role="icon" class="svg-icon iconLogoGlyph" width="25" height="30" viewBox="0 0 25 30"><g fill="none"><path fill="#BCBBBB" d="M21 27v-8h3v11H0V19h3v8z"></path><path fill="#F48024" d="M5.402 19.101l13.561 1.96.164-2.38-13.256-2.547-.469 2.967zM7.2 12.3l12 5.6 1.1-2.4-12-5.6-1.1 2.4zm3.4-5.9l10.2 8.5 1.7-2-10.2-8.5-1.7 2zM17.1.2L15 1.8l7.9 10.6 2.1-1.6L17.1.2zM5 25h14v-3H5v3z"></path></g></svg>
Run codeHide resultI have a set of icons created using SVG. Some of these icons contain an inline style with color information. The most common use case is to ignore these inline fills and inherit their parent for them by colordeclaring fill: currentColorin CSS. But in some cases, like our logo, we would like these inline colors to display. Elsewhere, say, a footer, we would like to redefine the colors with one color of our choice.
For reasons โข, I am stuck with these classes that are in the library. Each icon has a class svg-iconand a more specific class, in this case iconLogoGlyph.
fill: currentColor, CSS, ? :not, , .iconLogoGlyph, fill: currentColor, .
fill: currentColor? fill: inherit fill: none. - fill: just grab what in the SVG, yo ๐ค