-
Notifications
You must be signed in to change notification settings - Fork 117
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
feat: Add RTL support to admin modal #525
feat: Add RTL support to admin modal #525
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #525 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 33 33
Branches 3 3
=========================================
Hits 33 33 ☔ View full report in Codecov by Sentry. |
9563c42
to
39cc245
Compare
39cc245
to
87c43e9
Compare
@sakhawy Are the buttons and header positioned correctly? |
Oh, I missed that! I'll adjust it, thanks! |
@fsbraun Should I make this adjustment from .cms-modal-minimize,
.cms-modal-close,
.cms-modal-maximize {
display: block;
position: absolute;
top: 50%;
margin-top: math.div(-$modal-header-button-area-size, 2);
right: $padding-normal;
color: $gray-light;
text-align: center;
width: $modal-header-button-area-size;
height: $modal-header-button-area-size;
cursor: pointer;
&:before {
position: relative;
top: math.div($modal-header-button-area-size - $icon-size, 2);
}
&:hover {
color: $color-primary;
}
} |
You're right, of course. |
@@ -305,7 +308,12 @@ form { | |||
float: left !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't that be float: start
?
@@ -66,12 +66,17 @@ | |||
float: left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float: left; | |
float: start; |
@@ -143,15 +150,21 @@ | |||
float: left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float: left; | |
float: start; |
@@ -161,13 +174,23 @@ | |||
display: inline-block; | |||
float: left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float: left; | |
float: start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can use float: start
and float: end
...
@fsbraun |
@fsbraun , I think it's not a best practice to use too many |
@joshyu I fully agree. djangocms-admin-style is not a good example for this, but has gone down that road may years ago. Alas, I believe with a bit of work this is fixable in most cases since all admin pages have the class As a simpler work-around, I have created my own |
Description
Added RTL support to cms-admin-modal
Related resources
Screenshots
Checklist