-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review and replace usage of float layouts in admin UI for RTL support #8126
Comments
Approach we discussed with @fabienheureux:
Components to ignore:
Potentially to trial first: 404, ModelAdmin |
As of #8921, we have:
|
#10020 - removes float usages from the gravatar / user profile image switching. |
As of #8520, I believe our browser support will allow us to use flow-relative Audit of float styles currently:
|
Follow-up to #8051, based on @wagtail/ui team discussions (LB - Thibaud in particular), and research from @fabienheureux. Wagtail’s admin UI overuses
float
/clear
for layout. This is problematic for RTL support since there is no browser support for flow-relative float/clear values. We could technically refactor our usage of float to have overrides based on[dir=rtl]
attribute selectors, but floats tend to be hard to work with anyway, so we expect it would be better for us to instead focus on refactoring float usage to CSS grid or flexbox.2023-02-17 review of the styles: 22
float: left
, 12float: right
, 8 occurrences ofclearfix
mixin, 13clear
.content-wrapper
@column
)Original assessment:
clear:
properties setclearfix
mixin is usedfloat:
properties setAll of those instances need to be reviewed, and either removed or refactored to CSS grid / flexbox. We should then use stylelint to enforce no new code uses floats for layout.
For anyone wanting to contribute to this, there are two options:
The text was updated successfully, but these errors were encountered: