Closed Bug 993089 Opened 11 years ago Closed 11 years ago

[BB][RTL] Make handling RTL & LTR text inside headers smarter

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: nefzaoui, Assigned: nefzaoui)

References

Details

(Whiteboard: [rtl-meta])

Attachments

(2 files, 1 obsolete file)

The idea is to make *RTL text* always on the Right no matter what direction the document has. and *LTR text* always on the left with what so ever document direction too. The concept gets clearer when Playing both RTL and LTR Music while OS is in English, you will notice no matter what title you're playing, it's always on the left. And for Arabic too, no matter what song title, it's always on the right. The idea is to use both dir="auto" alongside :dir pseudo class so that if we have an RTL text, align it to the right, if we have LTR text, align it to the left no matter what direction the current app has.
I actually opened the bug before rechecking Headers' css file :P After doing so it seems there is no need for :-moz-dir() in this case and all we have to do is delete text-align:left then whenever we need such feature we just add dir="auto" to the <h1> element of the title. (Music App is one example) Attaching PR and Screenshots
Attached file PR to Github (obsolete) —
Based on our IRC conversation, I think the goal of the bug is pretty clear by now, if you're okay with it then may I get a review please, Kazé? :) Thanks
Assignee: nobody → nefzaoui.ahmed
Attachment #8402906 - Flags: review?(fabien)
Blocks: gaia-rtl, 964034
Attachment #8402906 - Attachment is obsolete: true
Attachment #8402906 - Flags: review?(fabien)
I think that, for headers, we'll have to do the following: * Ensure the web components team that is turning the header into a web component knows that the header needs RTL support, and that they have requirements around that; * Ensure the CSS styles for the web component do what they need to do; * Target it for 2.1 most likely. Does this sound right to you Ahmed? Sorry for the bug traffic today. Just trying to get a sane backlog in order for RTL work so it can get some traction. Thanks!
I think this is obsolete because of the new Centered [BB]Headers and we can close this one :)
Flags: needinfo?(swilkes)
Flags: needinfo?(nefzaoui.ahmed)
(In reply to Stephany Wilkes from comment #5) > I think that, for headers, we'll have to do the following: > * Ensure the web components team that is turning the header into a web > component knows that the header needs RTL support, and that they have > requirements around that; > * Ensure the CSS styles for the web component do what they need to do; > * Target it for 2.1 most likely. > > Does this sound right to you Ahmed? Sorry for the bug traffic today. Just > trying to get a sane backlog in order for RTL work so it can get some > traction. Thanks! I must have completely lost track of this one. Sorry about that.. (In reply to Pavel Ivanov [:ivanovpavel] from comment #6) > I think this is obsolete because of the new Centered [BB]Headers and we can > close this one :) This is obsolete because of the new Centered BB headers as Pavel said
Flags: needinfo?(nefzaoui.ahmed)
No problem :) I will mark this as WORKSFORME
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Great news - thanks guys!
Flags: needinfo?(swilkes)
Mass Edit: adding the [rtl-meta]
Whiteboard: [rtl-meta]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: