Add stylelint rule to prevent usage of the order
CSS property
#61241
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Code Quality
Issues or PRs that relate to code quality
Description
Previously:
#57519
#57640
#58936
#58940
#58942
#59013
Part of an effort to remove all the
order
CSS properties from the codebase.For accessibility, visual/reading and DOM order must always match when they affect reading order and interaction. Basically thisis almost always the case. There's very limited cases where the
order
property can be used without affecting accessibility, for example when switching the position of an aria-hidden icon, or similar cases where the impact is only 'visual'.To prevent future usages of the
order
CSS property, I'd like to propose to:order
property is found.stylelint-disable
comment would be appropriate, require to specifi a disable reason.stylelint-disable
comments, which is a good thing anyways.Currently, there are 2 occurrences of the
order
css property, here and here. They're both tracked in specific issues and they will be likely removed soon. Other occurrences have been removed already.Step-by-step reproduction instructions
npm run lint:css
in yout terminal, in the project root.order
CSS property.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: