Closed Bug 1010553 Opened 10 years ago Closed 10 years ago

Create a gaia-switch web component

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S2 (23may)
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

(Whiteboard: [p=3],[systemsfe])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
wilsonpage
: review+
Details | Review
A gaia switch web component would be useful to have. I would like to take this and start experimenting with web components.
Attached file Github pull request
Mostly WIP - but please feel free to add any comments if you have them.
Comment on attachment 8422736 [details] [review]
Github pull request

Hey Guys!

Thought I'd give a component a shot here. Please take a look and let me know what you think. I copied most of the comment blocks from the gaia-header component as we are waiting on the same platform issues for most of these.
Attachment #8422736 - Flags: review?(yor)
Attachment #8422736 - Flags: review?(wilsonpage)
Attachment #8422736 - Flags: review?(21)
Kevin, nice one!  I made some comments on the PR.
kgrandon: Love it! Couple of nits, most importantly making sure web-component styling is standalone/decoupled from old building block.
Alias: gaia-switch
Comment on attachment 8422736 [details] [review]
Github pull request

Nice that we have broken free from BB :)

Looks to me like the PNGs could be ditched at some point. No reason why those can't be done with pure CSS removing all the @2x crap, plus would make them 'themeable' :)
Attachment #8422736 - Flags: review?(wilsonpage) → review+
Comment on attachment 8422736 [details] [review]
Github pull request

+1 to getting rid of PNGs, let's definitely try to do that in the future :)

Thanks for the review. I'd like to move fast on this stuff, so going to land. If you guys have any other feedback we can address it.
Attachment #8422736 - Flags: review?(yor)
Attachment #8422736 - Flags: review?(21)
Landed: https://github.com/mozilla-b2g/gaia/commit/6c7c58de03ccc0060a16ff36a649175098dc0139
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 1011118
Target Milestone: --- → 2.0 S2 (23may)
Landed a follow-up to move tests to mirror elements folder as we will be landing several of these:

https://github.com/mozilla-b2g/gaia/commit/2a7ee1d0777ddafd2df31b7779be578d3f0dcbae
Alias: gaia-switch
No longer blocks: gaia-web-components
No longer depends on: 1011118
I landed a small commit as a follow-up to rename the gaia-switch file paths to be gaia_switch.

https://github.com/mozilla-b2g/gaia/commit/b53f4a8c02722423ef17aacf9c6cce5c2276a23a
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: