[Settings] switch, radio, checkbox are migrated to web component

11 views
Skip to first unread message

Fred Lin

unread,
Sep 12, 2015, 5:23:07 AM9/12/15
to dev-gaia, Hung, Evelyn, Grandon, Kevin, Zenevich, Yura
Hello,


In past months Kevin has done great work to migrate several UI elements (switch, radio, checkbox) to web component.
PLEASE NOTICED that Any new patches for settings that contain those UI should use web component instead of Building Block.


Instead of using gaia-components(which comes with new UI style),
We have web component with same name (gaia-switch*, gaia-radio*, gaia-checkbox*) inside of gaia/shared/elements, ex:
https://github.com/mozilla-b2g/gaia/tree/master/shared/elements/gaia_radio They are mostly wrappers for building block style, so it has same looks and feel like current UI,
not breaking the UI consistency and with better maintainability.

There're still some switch elements need to be migrated, once the work is done we will remove all pack-[element] related css styles in settings css.

regards
--
Fred

Reply all
Reply to author
Forward
0 new messages