Hi there,
when creating a simple button or switch in HabPanel the default behaviour is that the background color of that button changes for a short time when clicking on it. Because of this the user gets a feedback that the button was clicked, which is great.
I want to customize buttons and so am using a template to create a button, e.g.
<button style="width: 100%; height: 5em; border: 0;
color: {{ variable | themeValue:'widget-text-color' }};
background: {{ variable | themeValue:'body-bg' }};
font-size: 16px; line-height: 2.0;"
ng-click="sendCmd('av7705_send_command', 'MVUP')">
Vorstufe<br>
<i class="glyphicon glyphicon-off" style="color: {{ variable | themeValue:'primary-color' }};"></i><br>
einschalten
</button>
How can i implement a different background color of the button on click?
Best regards,
cyb