#Styling a components checkbox

12 messages · Page 1 of 1 (latest)

sleek yarrow
#

Is there any way to style a https://material.angular.io/components/checkbox/ ?
I only found the color attribute, which, for ony only seems to changed the color for the selected checkbox (I also wanna edit the checkbox in its unclicked form) and also it only takes the arguments primary and warn

tribal tree
#

You need to update existing styles manually by targeting the right selector to override it. Angular Material is an Material Design implementation and style customization is limited by design.

sleek yarrow
tribal tree
sleek yarrow
#

so not the checkbox?

tribal tree
#

Angular Material is not only friendly for customization by design but maintained for this design. It'll make customization difficult and might be broken by upcoming updates.
When it comes to customization, the best way is to avoid using the Angular Material component at all

sleek yarrow
tribal tree
sleek yarrow
tribal tree
sleek yarrow
#

styling the "vanilla" checkbox didn't work at all, no matter what I did nothing changed 🤨