Button card - Change color only when pressed

I ahve tried color: under icon, but it is giving me an error:
was trying to use this: