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 ruleP2stack specificStack: css
csstexti18nresponsive
Don't force `nowrap` on text that may grow
Avoid `white-space: nowrap` on message/label text that could be longer (other languages, future copy); let it wrap and solve overflow another way (e.g. `flex-shrink: 0` on siblings).
PR: hegnar-bellsheep-web · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codecss
| 1 | .toast { white-space: nowrap; } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codecss
| 1 | .toast { /* allow wrapping */ } |
| 2 | .toast .icon { flex-shrink: 0; } |
Explanation (EN)
Objašnjenje (HR)