Part of #2359331: [Meta] Add missing RTL rules in core CSS files.. These missing RTL rules were found using an automated tool.
The list of missing RTL rules is attached.
Comment | File | Size | Author |
---|---|---|---|
#49 | seven_missing_rtl_rules-2396483-49.patch | 9.19 KB | Karmen |
#46 | seven_missing_rtl_rules-2396483-46.patch | 9.31 KB | Karmen |
#43 | seven_missing_rtl_rules-2396483-43.patch | 0 bytes | Karmen |
#38 | 2396483-rule-RTL-38.patch | 3.68 KB | joginderpc |
#30 | seven_missing_rtl_rules-2396483-30.patch | 10.09 KB | balagan |
Comments
Comment #1
LewisNymanComment #2
SoumyaDas CreditAttribution: SoumyaDas commentedComment #3
lauriiiI actually started this one day and did some progress. You can use my changes if you want :)
Comment #4
SoumyaDas CreditAttribution: SoumyaDas commented@lauriii Thanks, I'll take a look on your changes :) .
Comment #5
Gábor HojtsyWe don't use dir="ltr" in core by convention, instead we only provide override styles in dir="rtl" so all other styles are properly inherited from LTR and we don't need to repeat any. While here there may be only one style, that may not be true with future modifications.
Comment #6
SoumyaDas CreditAttribution: SoumyaDas commentedPlease find the patch file (seven_missing_rtl_rules-2396483-6.patch) for the corresponding missing rtl rules. Needs review. Thanks.
Comment #7
SoumyaDas CreditAttribution: SoumyaDas commentedComment #8
idebr CreditAttribution: idebr commentedWhen overriding the position to
left: 20px
, you should also reset the right value withright: auto
;Same here
Comment #9
LewisNymanI don't see why we shouldn't use dir="ltr" when it makes sense. Why apply a style to both ltr and rtl if you're only going to undo it again for rtl?
Comment #10
SoumyaDas CreditAttribution: SoumyaDas commented@idebr your observation is correct. I have tested the point 1 manually and found that "right: auto;" also needs to be added to behave it properly. Thus Needs manual testing.
Comment #11
Gábor Hojtsy@LewisNyman: using dir="ltr" for some things would IMHO open the floodgates to not use the cascading system of CSS and would make it much easier to define independent styles for RTL and LTR making maintenance much harder. Using the cascade, it is trivial to figure out for example which styles you need to override, while otherwise you need to dig up styles that don't apply in RTL to see what you need to do in RTL.
Comment #12
Gábor HojtsyComment #13
saki007sterComment #14
saki007sterRe-rolling the patch and updated the css for issues mentioned in the comment #8
Comment #15
saki007sterComment #16
Gábor HojtsyComment #17
saki007sterComment #18
balagan CreditAttribution: balagan commentedComment #19
emanuelrighetto CreditAttribution: emanuelrighetto commentedI followed the check list and I can tell the patch resolve the issue: there are all the missing rules now.
Comment #20
balagan CreditAttribution: balagan commentedWhen printing the page, there are no border on the right. When I use
, then it appears properly. It seems it is not inherited from LTR styles.
Comment #21
idebr CreditAttribution: idebr commentedThis conversion is incorrect. Also I believe this css is not applied any since #theme => links no longer adds 'first' and 'last' classes, so it can be removed entirely.
Comment #22
balagan CreditAttribution: balagan commentedShould not we add /* LTR */ to all the LTR equivalents as in all other cases?
Comment #23
Gábor HojtsyYup.
Comment #24
balagan CreditAttribution: balagan commentedI have uploaded a zip file containing the screenshots I have made using Hungarian and Hebrew languages. They seem to be all right, although I have found an error displaying a tour with RTL. The close button is on the right, although it should be on the left, as in the ui-dialog-titlebar-close-he.jpg file (see zip file).
Comment #25
balagan CreditAttribution: balagan commentedComment #26
balagan CreditAttribution: balagan commentedI cannot reproduce the missing border I have noted before, so I think we can forget about that.
Comment #27
DevElCuy CreditAttribution: DevElCuy commentedComment #28
DevElCuy CreditAttribution: DevElCuy commentedRemoved tag by mistake.
Comment #29
balagan CreditAttribution: balagan commentedComment #30
balagan CreditAttribution: balagan commented@idebr: for your comment in #21, I think the conversion is correct. As far as I know the order of the values are: top left, top right, bottom right, and bottom left.
I have no idea about it, somebody please confirm that this can be removed.
Until then I have added the missing /* LTR */ to the patch.
Comment #31
balagan CreditAttribution: balagan commentedComment #32
lauriiiComment #33
Gábor HojtsyThis will end up having margins/paddings on both sides in RTL, right?
Why did right auto end up in LTR? Also this will end up with both left and right at 49% in RTL no?
Same thing.
Will leave the right and left color transparent in the first and second case in RTL respectively, no?
Should the right border be undone?
Same.
Comment #34
Gábor HojtsyIs someone planning to work on this one?
Comment #35
juankvillegas CreditAttribution: juankvillegas commentedIt is duplicated #2396473: Add missing RTL rules to System CSS
Comment #36
balagan CreditAttribution: balagan commented@juankvillegas, no, both issues are part of a meta issue, one refers to the seven theme css, the other the system css files (whatever that means).
Comment #37
Gábor HojtsyLooks like not being actively worked on, removing from sprint. :/
Comment #38
joginderpc CreditAttribution: joginderpc commentedPlease review
Comment #39
LewisNymanI tried applying this patch and I get the error: "fatal: unrecognized input". Did you modify the patch after creating it? I think I've only seen this happen before if I modify a patch in a text editor that likes to auto correct whitespace etc.
Also, why are changing the vertical position? How does this affect RTL?
Comment #40
joginderpc CreditAttribution: joginderpc commentedThere position updated is older one from other style sheet, not mine.
Comment #41
Gábor HojtsyComment #42
Karmen CreditAttribution: Karmen commentedComment #43
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedReroll made and more rules of this link were added.
Review, please.
Comment #44
LewisNyman@Karmen Looks like this patch is empty?
Also, did you use a tool to generate that text? It looks useful
Comment #45
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedOMG! Yes, I'm going to review it.
Comment #46
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedTrying again, sorry.
And no, i didn't use any tool :P
Comment #47
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedComment #48
LewisNymanGreat thanks for working on this.
We can make this simpler by just changing "border-left-color" to "border-color" and then we don't need any special RTL styling
Apart from that, it looks good.
Comment #49
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedAre you thinking about this change?
Comment #50
LewisNymanYep that's it. Thanks!
Comment #51
Karmen CreditAttribution: Karmen at La Drupalera by Emergya commentedComment #52
alexpottCSS is not yet frozen in beta. Committed 28a68ac and pushed to 8.0.x. Thanks!
Comment #54
fran seva CreditAttribution: fran seva commented