Relative Content

Tag Archive for cssangularangular-material

Semantic colors in an Angular Material component

My Angular Material v18 application allows the user to set their theme but one component group, the “order control”, has two semantic colors: blue for “buy”; and red for “sell” (similar to blue for “cold” and red for “hot” in a weather application) which are independent of the theme. Here’s an HTML version that kinda does what it should followed by an Angular Material section which does not change color.

Theme-independent Angular Material component

My Angular Material v18 application allows the user to set their theme but one component group, the “order control”, needs to be independent of the theme. Here’s an HTML version that kinda does what it should followed by an Angular Material section which does not change color.

How can I use an Angular Material chckbox without additional spacing?

I’m currently working with Angular Material and would like to know if there is a way to use the checkbox without the default spacing. I noticed that Angular Material’s checkbox are surrounded by some spacing by default (as seen in the image). Is there an easy way to remove this spacing so that I can insert the checkbox directly into my content without additional spacing?