Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#13663 closed defect (bug) (fixed)

Upgrade Button in IE7 RTL is unclickable

Reported by: filosofo Owned by: yoavf
Milestone: 3.0 Priority: normal
Severity: major Version: 3.0
Component: RTL Keywords: has-patch
Focuses: Cc:


Will make a patch as soon as I have opportunity.

Attachments (2)

rtl-upgrade-db.png (62.0 KB) - added by filosofo 8 years ago.
13663-ie-rtl-fix.patch (2.6 KB) - added by ocean90 8 years ago.

Download all attachments as: .zip

Change History (14)

#1 @ocean90
8 years ago

It seems that this is an IE 6 and 7 bug. The margin: X auto doesn't work with RTL. A solutuion could be:

html {direction:ltr;}
body {direction: rtl;}

See here.

#2 @nacin
8 years ago

  • Keywords needs-rtl needs-patch added

Seems sensible.

#3 @filosofo
8 years ago

I'd like to find a more general solution first. The fewer targeted hacks we have to make the better.

#4 @azaozz
8 years ago

Another common solution to this is adding text-align: center on the main container (needs to be defined in ie.css with higher priority).

#5 @ocean90
8 years ago

azaozz: I tried, but it doesn't work. The HTML Output:

<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>

<h2>No Upgrade Required</h2>
<p>Your WordPress database is already up-to-date!</p>
<p class="step"><a class="button" href="http://localhost/wp/">Continue</a></p>


We need the fix also for the confirm box in multisite and also if we would support RTL in wp_die().
We should load the IE stylesheet, give the upgrade and confirm box a class and use this for the IE hack.

#6 @ocean90
8 years ago

  • Keywords has-patch added; needs-rtl needs-patch removed

13663-ie-rtl-fix.patch: This is the simplest solution I think. It breaks nothing but solves the IE 6 and 7 bug.

#7 @ocean90
8 years ago

  • Component changed from Administration to RTL
  • Owner set to yoavf

#8 @azaozz
8 years ago

The patch seems to be working properly, just bear in mind this hack will be applied everywhere ie.css is loaded (pretty much on all screens).

#9 follow-up: @ocean90
8 years ago

azaozz: It will applied when ie-rtl.css is loaded. And that shouldn't be a problem because <body> is always RTL, the patch only override the direction from <html>.

#10 in reply to: ↑ 9 @azaozz
8 years ago

Replying to ocean90:

azaozz: It will applied when ie-rtl.css is loaded...

Yes, exactly. We load ie.css conditionally on nearly all pages in the admin so ie-rtl.css will be loaded too (in RTL mode). I didn't see problems with the patch applied just wanted to get a confirmation from RTL languages users too.

#11 @yoavf
8 years ago

  • Status changed from new to accepted

Patch looks good.

We already assume that the HTML element is always "LTR" - the only other difference that this patch will make is that it will move the window vertical scrollbars from left to right as well - but that's how I'd want it and how it's currently behaving in other browsers.

#12 @nacin
8 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [15146]) Numerous RTL improvements. props ocean90, TECannon. fixes #13663, fixes #13677.

Note: See TracTickets for help on using tickets.