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:
Shubham Padia
2025-07-22 14:55:11 +00:00
committed by Tim Abbott
parent d24f2972d4
commit 22d8c725eb
4 changed files with 18 additions and 13 deletions

View File

@@ -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/"},
},
],
)