Push Button text color

Hello, how can i change the Text color of a Push Button when its pressed?

v0 theme: flat

/* css: toggle button */
:host.on .label {
  color: red;

/* css: push button */
:host.active .label {
  color: red;
1 Like

this is kinda what i tried but doesn’t work :confused:
it works fine on a Toggle, but Push is somehow different,
feels like no host.on state?

Sorry I overlooked the question, replacing .on with .active will do.


oh, active is the solution!
now i can have proper visual Feedback, thanks a lot!

1 Like