Add stylelint rule to prevent usage of the *-reverse
CSS flex direction values
#63048
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Code Quality
Issues or PRs that relate to code quality
Description
SimilarlySimilarly to #61241 / #61243 the CSS flex
row-reverse
andcolumn-reverse
values forflex-direction
introduce a mismatch between visual/reading and DOM order.For more details about why this is a problem for accessibility and the very limited cases where these values can be used, please see #61241.
To prevent future usages of these values I'd like to porpose to add a new stylelint rule.
Currently, there are 5 occurrences of
-reverse;
in the*.scss
files in the codebase:All these occurrences should be double checked and if they do alter visual/DOM order, the implementation should be changed.
Step-by-step reproduction instructions
-reverse;
.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: