Hello, how can i change the Text color of a Push Button when its pressed?
v0 theme: flat
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;
}
this is kinda what i tried but doesn’t work
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!