icons: Let the system using the icons specify the stroke property.

Fixes #34716.
The stroke property 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 07:06:59 +00:00
committed by Tim Abbott
parent 840817d2df
commit 26595799c7
23 changed files with 31 additions and 26 deletions

View File

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