Skip to content

Commit 849e4ad

Browse files
davidmerriquejonathantneal
authored andcommitted
Don't override svg fill
Don't apply a fill if there's already a fill in the attribute.
1 parent b8f007f commit 849e4ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sanitize.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ img {
254254
* Change the fill color to match the text color in all browsers (opinionated).
255255
*/
256256

257-
svg {
257+
svg:not([fill]) {
258258
fill: currentColor;
259259
}
260260

0 commit comments

Comments
 (0)