Search results

Styles and Appearances in Angular Switch component

24 Sep 2021 / 1 minute to read

To modify the Switch appearance, you need to override the default CSS of Switch component. Please find the list of CSS classes and its corresponding section in Switch. Also, you have an option to create your own custom theme for the controls using our Theme Studio.

CSS Class Purpose of Class
.e-switch-wrapper .e-switch-inner To customize the line of the switch in off mode
.e-switch-wrapper .e-switch-handle To customize the handle of the switch in off mode
.e-switch-wrapper:not(.e-switch-disabled):hover .e-switch-handle:not(.e-switch-active) To customize the handle of the switch in off mode when hover
.e-switch-wrapper:not(.e-switch-disabled):hover .e-switch-inner:not(.e-switch-active) To customize the line of the switch in off mode when hover
.e-switch-wrapper .e-switch-handle.e-switch-active To customize the handle of the switch in on mode
.e-switch-wrapper .e-switch-on To customize the line of the switch in on mode
.e-switch-wrapper:hover .e-switch-handle.e-switch-active To customize the handle of the switch in on mode when hover
.e-switch-wrapper:hover .e-switch-inner.e-switch-active .e-switch-on To customize the line of the switch in on mode when hover