icons: Let the system using the icons specify the fill-rule color.

The fill-rule color is ignored when we generate webfonts in our main
app. See
https://zulip.readthedocs.io/en/latest/subsystems/icons.html#cleaning-up-the-svg-code
for more details.
This commit is contained in:
Shubham Padia
2025-05-27 06:58:10 +00:00
committed by Tim Abbott
parent 7eec8fe3a2
commit 840817d2df
41 changed files with 52 additions and 48 deletions

View File

@@ -975,6 +975,11 @@ svg_rules = RuleList(
"description": "System icons ignore fill values, so do not include the fill property.",
"include_only": {"web/shared/icons/", "web/images/icons/"},
},
{
"pattern": r"fill-rule=(['\"])(.*?)\1",
"description": "System icons ignore fill-rule values, so do not include the fill-rule property.",
"include_only": {"web/shared/icons/", "web/images/icons/"},
},
],
)