Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Oct 2014 at 10:18 UTC
Updated:
17 Feb 2015 at 11:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
Bojhan commentedDid you try this in a responsive view?
Comment #2
tarekdj commentedYep! working Fine!
Comment #3
emma.mariaThis patch no longer applies. Also when a new patch is posted we need more screenshots for different screen widths.
Comment #4
adci_contributor commentedTrying to reroll.
Comment #5
adci_contributor commentedStill need screenshots
Comment #6
lauriiiBefore:

After:

This starts to look a lot better! I think we still need to remove the margin from the right side of the vertical tabs element.
Comment #7
manjit.singhStyling for vertical tabs is changed and it seems like this issue has got fixed. This case can be closed now.
Comment #8
manjit.singhComment #9
emma.mariaHas what was found in comment #6 been fixed? I see no new patch for this. Setting back to needs work.
We need new screenshots of anything shown previously broken that is now fixed before it can be rtbc.
Comment #10
Anonymous (not verified) commentedthe margin was coming from other theme files (core/misc/vertical-tabs..) anyways heres a patch to clear it in bartik and screenies with different view-port sizes.
Comment #11
lauriiiThis comments is not needed and there should be /* LTR */ comment on the original value
Comment #12
Anonymous (not verified) commented[dir="rtl"] .vertical-tabs-list {thats the original selector so i dont think we should have an LTR comment there either.anyways new patch with out the comment.
Comment #13
emma.mariaThanks for the patch @b0unty. I have noticed some problems with the code.
This cannot be added to Bartik in this way. There is no LTR version of that selector in this file. You are trying to override existing RTL styles in Core, so we should fix it in Core first, or copy over the LTR styles and write a correctly formatted RTL style for it.
See here for guidelines.
Comment #14
Anonymous (not verified) commentedBut the original margin is coming outside of bartik's css files.
core/misc/vertical-tabs.css :

And this is required by classy.
Comment #15
emma.mariaWe can't just print RTL styles in Bartik to override something in Core, it looks to the outside that we have missed something out in Bartik. I will take a closer look at this.
Comment #16
emma.mariaVertical tabs now look different in core at Head, I have updated the issue summary. I will now work on a patch, using this issue #2396489: Add missing RTL rules to Bartik theme CSS as reference. #2396489: Add missing RTL rules to Bartik theme CSS does not completely fix things but it has filled in missing RTL styles in Bartik, so I will investigate why it still does not look right.
Comment #17
emma.mariaCreated a fresh patch. The RTL selector added corresponds with the LTR one above.
Note: I know we have this issue for Bartik too #2396489: Add missing RTL rules to Bartik theme CSS but it does not completely fix the vertical tabs so we keep this issue with this fix too.
Due to over specificity of other elements in Bartik there are some issues with the styling. However adding 'padding: 0' to the RTL styles which "corresponds" with the LTR styles knocks that on the head.
The vertical tabs and other components in Bartik are all getting a code overhaul here #1342054: [META] Clean up templates and CSS, so the selectors, classes etc will be revamped in due time.
Here are screenshots at various widths showing the visual fix.



Comment #18
emma.mariaComment #19
idebr commentedNice catch on the
padding: 0;in the RTL styling. Very easy to miss :)I can confirm the patch fixes RTL styling for the vertical tabs. I added a comment to the RTL
padding: 0;styling, since 0 usually doesn't have to be fixed for RTL.Comment #20
alexpottComment #21
idebr commentedRemoved the margin now that #2396489: Add missing RTL rules to Bartik theme CSS has been committed. I was unable to generate an interdiff, since it is a reroll.
Comment #22
emma.mariaI can confirm #21 still achieves the same fix as the patch in #19. RTBC again.
Comment #23
alexpottCSS is not frozen in beta. Committed dcf5c80 and pushed to 8.0.x. Thanks!