Child of #2359331: [Meta] Add missing RTL rules in core CSS files..
The automated script detected 19 issues in core/themes/seven/css/components/tabs.css
I have fixed those issues, and also some rule specifity issues.
I have also attached screenshots for the visible issues.
LTR - 800px
RTL - 800px - Before
RTL - 800px - After
LTR - 320px
RTL - 320px - Before
RTL - 320px - After
Comment | File | Size | Author |
---|---|---|---|
missing-rtl-seven-tabs.patch | 5.76 KB | herom | |
tabs.missing-rtl.txt | 2.83 KB | herom | |
rtl-320px-fixed.png | 9.23 KB | herom | |
rtl-320px-before-annotated.png | 28.49 KB | herom | |
ltr-320px.png | 9.33 KB | herom |
Comments
Comment #1
herom CreditAttribution: herom commentedComment #2
herom CreditAttribution: herom commentedComment #3
herom CreditAttribution: herom commentedComment #4
LewisNymanThank you for making these improvements.
I tested the tabs on RTL and I couldn't find any other issues.
Comment #5
alexpottThis is a non RTL change - how come?
Comment #6
herom CreditAttribution: herom commentedIt is an RTL change. Here's the CSS with some extra context.
I don't know why we were even overriding the "top" property in an RTL rule.
Comment #7
alexpottDoh - thanks @herom - but that leads me another question...
I don't understand how these rules are the LRT/RTL equivalents in
.is-collapse-enabled .tabs__trigger
Comment #8
herom CreditAttribution: herom commentedYeah, I always have to look them up myself too.
Here is the order of the values in border-radius:
top-left, top-right, bottom-right, bottom-left
So, to make them RTL, we have to switch first value with the second, and third value with the fourth.
Comment #9
alexpott@herom thanks for answering all my question - this looks good - nice work.
Committed c8d4095 and pushed to 8.0.x. Thanks!