The background-position on RTL messages is not set properly. It is set using percents, and only works on a certain page width.

Here are some screenshots showing the issue (on a smaller screen).

normal (LTR):


RTL - before:


RTL - after:

Also there are issues with margins of messages container, they don't have proper margin-right margin-left in RTL languages. See #1 for screenshot.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

corbacho’s picture

Title: Fix background-position for RTL messages. » Fix CSS for RTL messages
Issue summary: View changes
FileSize
104.22 KB
1.21 KB
730 bytes

Good work herom
Your patch fixes the issue of the icon. It's true that looked strange in narrow screens.

Reviewing your patch I found other CSS issues with RTL messages. I hope you don't mind I'm extending a bit the scope of this issue to cover it in the same patch.

These screenshots are taking in English language, modifying manually dir=rtl in the html element.
I tested in Bartik, Seven and Stark:

Where it says patch #1 should be #0
Where it says patch #3 it should be #1.
Sorry for the mess.

corbacho’s picture

Issue summary: View changes

.

herom’s picture

Nice catch with the margins, but we really shouldn't be changing the default LTR css in this issue. So, I removed the LTR changes in your patch.

Screenshots with the latest patch:

RTL messages in Seven:

RTL messages in Bartik:

corbacho’s picture

Status: Needs review » Reviewed & tested by the community

agree

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 10e6812 and pushed to 8.x. Thanks!

  • alexpott committed 10e6812 on 8.x
    Issue #2310321 by corbacho, herom: Fixed CSS for RTL messages.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.