Closed Bug 1355355 Opened 9 years ago Closed 5 years ago

Firefox accounts emails should respect dir=rtl

Categories

(Cloud Services :: Server: Firefox Accounts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: tomer, Unassigned)

Details

Attachments

(2 files)

Attached image Screenshot —
When Firefox Accounts required to send a message to the user, it send the message in the user language, but for RTL languages it doesn't set the page direction, which cause the message content to look unprofessional and not easily readable.
The email contents are centered for all languages. (In reply to Tomer Cohen :tomer from comment #0) > ...which cause the message content to look unprofessional and not easily readable. Could you please attach a screenshot of what the expected look should be, so we can fix it up. Thanks!
Flags: needinfo?(tomer.moz.bugs)
Attached file testcase —
(In reply to Vlad Filippov :vladikoff from comment #1) > The email contents are centered for all languages. centering is just not enough, as the text direction and text alignment are not the same thing. When your content is mixed between multiple languages, it is even worse, as words may appear on the wrong place. > Could you please attach a screenshot of what the expected look should be, so > we can fix it up. Thanks! Please see the attached testcase. All the three cases are featuring the same content as the title from my previous screenshot, the text is centered in all cases, so the only difference is the direction. The text is editable, but please note that some Unicode control characters can override the case behavior. * The uppermost doesn't mention direction at all, so it defaults to the UA/MUA - For example, if gmail UI is in RTL locale, it will behave as the content have dir=rtl. * In the second case I've hardcoded the display for LTR content, so it'd appear correctly even if the MUA is using an RTL locale for content that doesn't featuring RTL content. * The third case is hardcoded with dir=rtl, so it will appear well in the MUA given that the content is RTL, independently from the MUA locale. In most cases setting the language direction in the <html> or <body> should be enough, but mixing between languages (or RTL languages and numbers) sometimes can be more tricky.
Flags: needinfo?(tomer.moz.bugs)
(In reply to Tomer Cohen :tomer from comment #2) > Created attachment 8857422 [details] > testcase > > (In reply to Vlad Filippov :vladikoff from comment #1) > > The email contents are centered for all languages. > centering is just not enough, as the text direction and text alignment are > not the same thing. When your content is mixed between multiple languages, > it is even worse, as words may appear on the wrong place. > > > Could you please attach a screenshot of what the expected look should be, so > > we can fix it up. Thanks! > Please see the attached testcase. All the three cases are featuring the same > content as the title from my previous screenshot, the text is centered in > all cases, so the only difference is the direction. The text is editable, > but please note that some Unicode control characters can override the case > behavior. > > * The uppermost doesn't mention direction at all, so it defaults to the > UA/MUA - For example, if gmail UI is in RTL locale, it will behave as the > content have dir=rtl. > * In the second case I've hardcoded the display for LTR content, so it'd > appear correctly even if the MUA is using an RTL locale for content that > doesn't featuring RTL content. > * The third case is hardcoded with dir=rtl, so it will appear well in the > MUA given that the content is RTL, independently from the MUA locale. > > In most cases setting the language direction in the <html> or <body> should > be enough, but mixing between languages (or RTL languages and numbers) > sometimes can be more tricky. I'm surprised it took so long for someone to file an issue on this :(. However, thanks so much for the detailed response. This will help us fix this up!
(In reply to Vlad Filippov :vladikoff from comment #3) > I'm surprised it took so long for someone to file an issue on this :(. > However, thanks so much for the detailed response. This will help us fix > this up! Well, this is the tricky part. Some MUAs guess the direction by themselves and show the content as expected (this is handy for example when the message content is plain/text), and some MUAs are setting the default direction to the user interface language. So, to see this issue, people need to set the application language to an RTL language while keeping the MUA to an LTR language and not triggering any automatic direction guessing algorithm...

Thanks for filing this. We're doing some work on emails this summer and I hope to pull this in as well. With that in mind, I've re-filed this where we track our work - you can follow that at https://github.com/mozilla/fxa/issues/8320 and I'll close this. Thanks again.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: