gaia-elements are not RTL-friendly

NEW
Unassigned

Status

Firefox OS
Gaia
P3
normal
3 years ago
3 years ago

People

(Reporter: Nefzaoui, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [rtl-meta])

(Reporter)

Description

3 years ago
There should be an approach for all gaia elements similar to the one suggested in
Bug 1073489 Comment 5.
Unfortunately :host-context(<selector>)* doesn't seem to be implemented (is it?) which would have made it all easier.
Depending on l10n to change class names manually could be an option but it's not the pretties approach ever.

I'm not quite sure of the best way to handle it. But until then this will block us from being able to RTL every gaia-element.

* http://dev.w3.org/csswg/css-scoping/#selectordef-host-context
(Reporter)

Updated

3 years ago
Blocks: 906270, 1073489
Is there a bug for :host-context yet? Maybe this can be implemented easily?
(Reporter)

Comment 2

3 years ago
(In reply to Julien Wajsberg [:julienw] from comment #1)
> Is there a bug for :host-context yet? Maybe this can be implemented easily?

Did a quick search. None yet.
See Also: → bug 1051763
(In reply to Julien Wajsberg [:julienw] from comment #1)
> Is there a bug for :host-context yet? Maybe this can be implemented easily?

https://bugzilla.mozilla.org/show_bug.cgi?id=1082060
See Also: → bug 1082060
(Reporter)

Updated

3 years ago
Blocks: 1037755
See Also: → bug 1102491
Duplicate of this bug: 1102491
Mass Edit: adding the [rtl-meta]
Whiteboard: [rtl-meta]
Hoping to have bug https://bugzilla.mozilla.org/show_bug.cgi?id=1082060 resolved to help here in 2.2 timeframe
FYI any components that use that base gaia-component.js [1] are now able to listen to document.addEventListener('dirchanged'). See gaia-switch [2] as an example.

[1] http://github.com/gaia-components/gaia-component
[2] http://github.com/gaia-components/gaia-switch
Wilson, it looks like bug 1082060 is no longer being considered for 2.2 -- is there anything then that needs to happen in the context of this bug specifically for the 2.2 branch?
Flags: needinfo?(wilsonpage)
(In reply to Dylan Oliver [:doliver] from comment #8)
> Wilson, it looks like bug 1082060 is no longer being considered for 2.2 --
> is there anything then that needs to happen in the context of this bug
> specifically for the 2.2 branch?

AFAIK no more work regarding RTL and gaia-components is required for v2.2.
Flags: needinfo?(wilsonpage)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.