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: CSS/SCSS
cssflexboxreadability
Use flex-direction: row-reverse instead of order on items
To reverse the visual order of flex children, flip the container direction rather than setting order on individual items.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codescss
| 1 | .buttons { display: flex; } |
| 2 | .confirm { order: 2; } |
| 3 | .cancel { order: 1; } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .buttons { display: flex; flex-direction: row-reverse; } |
Explanation (EN)
Objašnjenje (HR)