Was fighting with the order of secondary tabs made created from Panels and figured out that the Seven theme in Drupal 7 is showing them reversed. They are displayed correct in other themes like Bartik and Rubik. They are displayed fine in RTL though.
Checked the CSS in Firebug and it looks like the "float: right" on "ul.secondary li" is causing the problem.
ul.secondary {
float: right; /* LTR */
font-size: 0.923em;
padding: 0 3px 5px;
line-height: 1.385em;
overflow: hidden;
background-color: #fff;
}
ul.secondary li {
margin: 0 5px;
float: right; /* LTR */
}
It's working fine in both LTR and RTL when "float: right" is removed or set to none. Not sure which one is the correct CSS approach.
Attached a D8 patch setting float to none.
Comment | File | Size | Author |
---|---|---|---|
#4 | secondary-tabs-float-7.patch | 328 bytes | beltofte |
secondary-tabs-float.patch | 328 bytes | beltofte | |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedSubscribing!
I thought at first it was menus system bug,but after switching to bartik and other themes menu order was fine!
Comment #2
ParisLiakos CreditAttribution: ParisLiakos commentedComment #3
ParisLiakos CreditAttribution: ParisLiakos commentedi tried the patch and works.Testbot is also happy:)
Comment #4
beltofteAttached patch for Drupal 7.
Comment #5
beltofteHmm..... okay, looks like I should wait attaching a patch for Drupal 7 till the issue is changed to version 7. Testbot might not like the D7 patch on D8.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to 8.x. Moving to 7.x for webchick.
Comment #7
beltofte#4: secondary-tabs-float-7.patch queued for re-testing.
Comment #8
webchickCommitted and pushed to 7.x. Thanks!