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: react
accessibilityariacorrectness
Don't ship incorrect accessibility labels
An aria-label that is wrong is worse than none; either set it correctly to describe the element or remove it.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codetsx
| 1 | <table aria-label="sticky table"> // label unrelated to content |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | <table aria-label="List of tickers"> |
Explanation (EN)
Objašnjenje (HR)