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 ruleP2universalStack: universal
accessibilitycross-platformuiconsistency
Avoid relying on emoji rendering in UI labels
Emoji render differently across operating systems and devices, so prefer text or controlled icon assets in navigation and UI labels for consistent appearance.
PR: frontpage-web · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codets
| 1 | const links = [{ title: 'Football World Cup ⚽' }]; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | const links = [{ title: 'Football World Cup', icon: <BallIcon /> }]; |
Explanation (EN)
Objašnjenje (HR)