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

Skip to first unread message

Fred Lin

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

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.


Reply all
Reply to author
0 new messages