mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
icons: Do not allow stroke property via the style tag in svgs.
We already had a lint rule for this, but we did not disallow setting it from the style side. This was breaking the icons changed in this commit in our new astro help center.
This commit is contained in:
committed by
Tim Abbott
parent
d24f2972d4
commit
22d8c725eb
@@ -995,6 +995,11 @@ svg_rules = RuleList(
|
||||
"description": "System icons ignore stroke values, so do not include the stroke property.",
|
||||
"include_only": {"web/shared/icons/", "web/images/icons/"},
|
||||
},
|
||||
{
|
||||
"pattern": "stroke:",
|
||||
"description": "System icons ignore stroke values, so do not include the stroke property.",
|
||||
"include_only": {"web/shared/icons/", "web/images/icons/"},
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user