When an RTL language is enabled the new User menu is far off to the left. Attached patch adds one line to style-rtl.css in themes/garland.
Only local images are allowed.
Only local images are allowed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tixilite’s picture

Looks good to me.

cburschka’s picture

I was wondering about the hard-coded em margin, but looking at the screenshot it seems you're just aligning the menu with the left side bar so you don't need to worry about window resizing etc. Looks good, yes.

Status: Needs review » Needs work

The last submitted patch failed testing.

tstoeckler’s picture

Status: Needs work » Needs review

I don't believe that...

Status: Needs review » Needs work

The last submitted patch failed testing.

webchick’s picture

Status: Needs work » Needs review
catch’s picture

Status: Needs review » Reviewed & tested by the community

Well caught, the fix looks good.

Dries’s picture

Version: 7.x-dev » 6.x-dev

Committed to CVS HEAD. Thanks. Changing the version number to Drupal 6?

tstoeckler’s picture

Drupal 6 doesn't have the User menu so I guess that doesn't really make sense.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs review

Well, there is a secondary menu is Drupal 6 too, so it applies. I am not entirely sure however, that this is exactly how this is intended. Also, is the sidebar width specified in em?

tstoeckler’s picture

Assigned: tstoeckler » Unassigned
Status: Needs review » Reviewed & tested by the community
FileSize
78.3 KB

Wow, found this after a long time.
Patch still applies (with offset) and works. The sidebar is specified in em and the links stay at the right spot when zooming in the browser.
Screenshot attached. See the navigation menu to prove it's Drupal 6 :)

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs work

Ok, well, looking at the CSS, it looks like it is the same problem if you set Garland to have a right sidebar and keep an LTR language, right? It just does not have any indentation from right or left. So not sure this is actually a bug. If it is, why is it not mirrored in the LTR behavior when there is a right sidebar? Also, if there is no left sidebar, it will look pretty odd in RTL, right? I'm not convinced.

(Left and right sidebar referenced as displayed on the page, not necessarily the way it is named in Drupal).

tstoeckler’s picture

I don't exactly get what you're saying, sorry.
I get

Also, if there is no left sidebar, it will look pretty odd in RTL, right?

but I haven't verified that.
But from the rest I couldn't really see what the "needs work" part is, or if this is actually won't fix?!
Thanks in advance.

Gábor Hojtsy’s picture

Ok, wording it maybe in a more actionable form:

Try: both sidebars (left, right) with LTR. Where is the user menu? Should it be there?
Try: no sidebars (or only right sidebar) with RTL. Where is the user menu? Should it be there?

Looks like these two will not be consistent with your proposed way of it working with the patch.

tstoeckler’s picture

Version: 6.x-dev » 7.x-dev

You are correct. Both cases you mention align the user menu (secondary menu in D6) incorrectly. I checked D7 and it's a bug there too. So moving back there for now. I hope to roll a patch in the next days.

  • Dries committed b84e6a5 on 8.3.x
    - Patch #425778 by tstoeckler: user menu broken in RTL.
    
    

  • Dries committed b84e6a5 on 8.3.x
    - Patch #425778 by tstoeckler: user menu broken in RTL.
    
    

  • Dries committed b84e6a5 on 8.4.x
    - Patch #425778 by tstoeckler: user menu broken in RTL.
    
    

  • Dries committed b84e6a5 on 8.4.x
    - Patch #425778 by tstoeckler: user menu broken in RTL.
    
    

  • Dries committed b84e6a5 on 9.1.x
    - Patch #425778 by tstoeckler: user menu broken in RTL.