Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP1universalStack: SVG/Accessibility
accessibilitysvga11yicons
Give SVG icons an accessible name with title or aria-label
Decorative-by-default SVGs that convey meaning need a <title> (preferred) or aria-label so assistive tech can announce them.
PR: hegnar-bellsheep-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetsx
| 1 | <svg viewBox="0 0 24 24"><path d="..." /></svg> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | <svg viewBox="0 0 24 24"><title>palm tree</title><path d="..." /></svg> |
Explanation (EN)
Objašnjenje (HR)