Closed (duplicate)
Project:
Drupal core
Version:
8.2.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jun 2015 at 14:57 UTC
Updated:
14 Jun 2016 at 01:21 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #1
munzirtaha commentedAttached is a patch to fix the issue
Comment #2
munzirtaha commentedComment #3
manjit.singhComment #4
ellizard commentedAdding style for current page 'admin/people', not for all
Comment #5
munzirtaha commentedI have a better idea. What if we just removed the rules that caused this in the first place and just set the right and left margin to be equal from the start, isn't this neater?
Attached is a patch.
Comment #6
Sumit kumar commentedI have tested #5 patch but i can not see any effects
Comment #7
Sumit kumar commentedComment #8
Tony-Mac commentedassigning to myself during the code sprint in Ghent at XIO
Comment #9
Tony-Mac commentedI reviewed the patch (5) and it works as advertised and should be good to go.
Comment #10
alexpottI think this needs more investigate how come it looks okay in ltr in HEAD?
Comment #12
hog commentedComment #13
hog commentedComment #14
manjit.singh@HOG Seems like issues is still there :( Please check screenshot.
Comment #15
hog commentedRTL margin fixed.
Comment #16
hog commentedComment #17
lewisnymanThis doesn't look correct. We are removing the LTR styling and only applying RTL styling. Why?
Comment #18
hog commented@LewisNyman, thank you for remark. I edited list styles by default & a lists in table for better display.
Comment #19
hog commentedComment #22
sokru commentedI'm working this with nicobot in Barcelona 2015.
Comment #23
sokru commentedPatch #18 works. See attached pictures. Ignore test-bot results as it's only css.


Comment #24
herom commentedThe patch contains unrelated changes in
sites/example.settings.local.php.Also, when fixing RTL issues, you should always check that the LTR version doesn't change before/after the patch. The current patch seems to be breaking the LTR version.
Comment #25
sokru commentedAttached a patch with only RTL-related css.
Comment #26
nicobot commentedOk Sokru! I will review the patch, please set the issue to to be reviewed.
BTW, our mentor is jp_stacey.
Comment #27
sokru commentedComment #28
nicobot commentedHi Sokru,
Patch it's fine! It fixes the issue and it does not add anything else.
Moving to RTBC.
Thanks,
nico
Comment #29
alimac commented@sokru, @jp_stacey: can you work with another sprinter to add/update screenshots for this issue? We need before and after screenshots. Use Skitch to add arrows so that it's clear what you are pointing out in the screenshot.
Comment #30
herom commentedAs you can see in the screenshots below, there is still some extra margin remaining in the RTL version.
LTR Version (No margins).

RTL Version

Unfortunately, RTL issues can get tricky sometimes. RTL rules can override unrelated LTR rules due to CSS Specificity. Here,
[dir="rtl"] .item-list ulwins overtd .item-list ul, which has been causing the issue.Here is a patch with a more proper fix.
Comment #31
sokru commentedI attached a patch, with only setting
margin-right: 0, there we won't affect bottom and top margins, which should not be language direction dependent.Comment #32
jviitamaki commentedHere's the screenshots of changes to [dir="rtl"] .item-list ul element showing the difference for documentation and confirmation.
Before


After
Comment #33
jviitamaki commentedComment #34
sokru commentedNevermind my last patch, we should go with Herom's patch in comment #30.
Comment #35
alimac commentedHi all, it is really helpful when you include an interdiff along with your patch:
https://drupal.org/documentation/git/interdiff
Also, the screenshots need to be embedded in the issue summary (which needs an update to add the template: https://www.drupal.org/issue-summaries)
Comment #36
jp.stacey commentedJust to expand on sokru's comment above (I'm a mentor at Barcelona 2015):
* I agree the patch by herom in #30 is correct.
* The confusion arose because of the interplay of LTR and RTL rules in *both* tables.css and menus-and-lists.css
For the sprint purposes, this patch has been RTBC by people at the mentored sprint, but I don't think herom is here?
Comment #37
jviitamaki commentedComment #38
jviitamaki commentedComment #39
alexpottThis looks like the wrong fix... I think we need to change core/themes/seven/css/components/tables.css instead and do:
Comment #40
manjit.singhLooking into this issue.
Comment #41
manjit.singhremoved css from
menus-and-lists.cssand add it incore/themes/seven/css/components/tables.cssas per feedback in #39.Comment #42
Sumit kumar commentedI have tested patch no #41 on my local machine so its working fine for me.
See the screenshot
Comment #43
Sumit kumar commentedTest this patch on drupal-rc1 version
Comment #45
jordanddisch commentedTested on 8.2.x looks good.
Comment #46
les lim@jordanddisch, could you generate 3 additional screenshots:
- "Before" for LTR
- "After" for LTR
- "Before" for RTL
then make a new comment with all 4 screenshots? We should verify that the change doesn't cause regressions in LTR cases as well.
Comment #47
jordanddisch commentedTesting in 8.2.x, tested switching back between LTR and RTL, looked good.
Tested using latest patch as of May/13/2016 https://www.drupal.org/files/issues/2501957-rtl-41.patch
Before RTL change (text is LTR)

After RTL change (text is RTL)

Before LTR (text is RTL)

After LTR (text is LTR)

Comment #48
jordanddisch commentedComment #49
star-szrWhy are we removing this code altogether? I think this might be unintentionally breaking something else.
Comment #50
manjit.singh@Cottser i did not found
.item-list ulany where as of now.But on help page there is unordered list but there html rendering structure is different from what we are removing in the patch. (screenshot attached)
Any other who had found the broken UI with removing
Comment #51
maninders commentedJust checked the #41 patch, after applying it shows 1 css property is applied twice. so no need to have this property again.
This is already there. ([dir="rtl"] td .item-list ul {margin: 0;}). so need of this ([dir="rtl"] td .item-list ul, td .item-list ul) code.
And css is already called from tables.css file.
Screenshot is attached for your reference.
Comment #52
maninders commentedComment #53
star-szrComment #54
star-szr@Maninders I needed to read your comment a few times to understand but this should not be RTBC. What you pointed out is actually that this bug has already been fixed (I manually tested to confirm). We can also see this from the screenshots in #47 as well (no differences).
I ran
git log -S '/* This is required to win over specificity of [dir="rtl"] .item-list ul */'and that turned up #2587549: Remaining RTL fixes for Drupal 8.Unfortunately the only thing that makes sense now is to close this issue, thanks to everyone who worked on it!