item-list before
As shown in the image, the two items under the roles column inherited the wrong margin in the RTL version of the seven theme

The margin should be reset to 0

Before

After

Comments

munzirtaha’s picture

Status: Active » Needs review
StatusFileSize
new746 bytes

Attached is a patch to fix the issue

munzirtaha’s picture

Assigned: munzirtaha » Unassigned
manjit.singh’s picture

ellizard’s picture

StatusFileSize
new848 bytes

Adding style for current page 'admin/people', not for all

munzirtaha’s picture

StatusFileSize
new911 bytes

I 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.

Sumit kumar’s picture

StatusFileSize
new35.2 KB
new35.2 KB

I have tested #5 patch but i can not see any effects

Sumit kumar’s picture

Tony-Mac’s picture

Assigned: Unassigned » Tony-Mac

assigning to myself during the code sprint in Ghent at XIO

Tony-Mac’s picture

Assigned: Tony-Mac » Unassigned
Status: Needs review » Reviewed & tested by the community

I reviewed the patch (5) and it works as advertised and should be good to go.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

I think this needs more investigate how come it looks okay in ltr in HEAD?

The last submitted patch, 5: 2501957-5.patch, failed testing.

hog’s picture

StatusFileSize
new671 bytes
new534 bytes
hog’s picture

Status: Needs work » Needs review
manjit.singh’s picture

Status: Needs review » Needs work
StatusFileSize
new183.5 KB

@HOG Seems like issues is still there :( Please check screenshot.

asd

hog’s picture

StatusFileSize
new698 bytes
new536 bytes

RTL margin fixed.

hog’s picture

Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Needs work
Issue tags: +frontend

This doesn't look correct. We are removing the LTR styling and only applying RTL styling. Why?

hog’s picture

StatusFileSize
new1.68 KB
new1.03 KB

@LewisNyman, thank you for remark. I edited list styles by default & a lists in table for better display.

hog’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 18: 2501957-18.patch, failed testing.

HOG queued 18: 2501957-18.patch for re-testing.

sokru’s picture

I'm working this with nicobot in Barcelona 2015.

sokru’s picture

StatusFileSize
new222.19 KB
new216.83 KB

Patch #18 works. See attached pictures. Ignore test-bot results as it's only css.
before-patch
after-patch

herom’s picture

The 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.

sokru’s picture

StatusFileSize
new465 bytes

Attached a patch with only RTL-related css.

nicobot’s picture

Ok Sokru! I will review the patch, please set the issue to to be reviewed.

BTW, our mentor is jp_stacey.

sokru’s picture

Status: Needs work » Needs review
nicobot’s picture

Status: Needs review » Reviewed & tested by the community

Hi Sokru,

Patch it's fine! It fixes the issue and it does not add anything else.

Moving to RTBC.

Thanks,
nico

alimac’s picture

Issue tags: +Needs screenshots

@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.

herom’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new70.35 KB
new78.8 KB
new488 bytes

As 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 ul wins over td .item-list ul, which has been causing the issue.

Here is a patch with a more proper fix.

sokru’s picture

StatusFileSize
new451 bytes

I 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.

jviitamaki’s picture

Issue summary: View changes
StatusFileSize
new10.89 KB
new10.27 KB

Here's the screenshots of changes to [dir="rtl"] .item-list ul element showing the difference for documentation and confirmation.

Before
before
After
after

jviitamaki’s picture

Issue summary: View changes
sokru’s picture

Status: Needs review » Reviewed & tested by the community

Nevermind my last patch, we should go with Herom's patch in comment #30.

alimac’s picture

Hi 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)

jp.stacey’s picture

Just 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?

jviitamaki’s picture

Issue summary: View changes
jviitamaki’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

This looks like the wrong fix... I think we need to change core/themes/seven/css/components/tables.css instead and do:

[dir="rtl"] td .item-list ul,
td .item-list ul {
  margin: 0;
}
manjit.singh’s picture

Assigned: Unassigned » manjit.singh

Looking into this issue.

manjit.singh’s picture

Assigned: manjit.singh » Unassigned
Status: Needs work » Needs review
StatusFileSize
new903 bytes
new94.66 KB
new77.03 KB

removed css from menus-and-lists.css and add it in core/themes/seven/css/components/tables.css as per feedback in #39.

list

list

Sumit kumar’s picture

StatusFileSize
new295.91 KB
new55.68 KB

I have tested patch no #41 on my local machine so its working fine for me.
See the screenshot

Sumit kumar’s picture

Test this patch on drupal-rc1 version

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jordanddisch’s picture

StatusFileSize
new379.06 KB

Tested on 8.2.x looks good.

Screen shot

les lim’s picture

@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.

jordanddisch’s picture

Testing 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)
Before LTR change screen shot

After RTL change (text is RTL)
After LTR change screen shot

Before LTR (text is RTL)
After LTR change screen shot

After LTR (text is LTR)
After RTL change screen shot

jordanddisch’s picture

Version: 8.1.x-dev » 8.2.x-dev
Status: Needs review » Reviewed & tested by the community
star-szr’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/themes/seven/css/components/menus-and-lists.css
@@ -6,9 +6,6 @@
-[dir="rtl"] .item-list ul {
-  margin: 0.25em 1.5em 0.25em 0;
-}

Why are we removing this code altogether? I think this might be unintentionally breaking something else.

manjit.singh’s picture

StatusFileSize
new236.17 KB

@Cottser i did not found .item-list ul any 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)

uli

Any other who had found the broken UI with removing

-[dir="rtl"] .item-list ul {
-  margin: 0.25em 1.5em 0.25em 0;
-}
maninders’s picture

StatusFileSize
new86.15 KB
new96.16 KB

Just checked the #41 patch, after applying it shows 1 css property is applied twice. so no need to have this property again.

[dir="rtl"] td .item-list ul,
td .item-list ul {
  margin: 0;
}
/* This is required to win over specificity of [dir="rtl"] .item-list ul */
[dir="rtl"] td .item-list ul {
  margin: 0;
}

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.

maninders’s picture

Status: Needs review » Reviewed & tested by the community
star-szr’s picture

Assigned: Unassigned » star-szr
star-szr’s picture

Assigned: star-szr » Unassigned
Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#2587549: Remaining RTL fixes for Drupal 8

@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!