
When you tap the links and buttons, they are highlighted. This is done by active state in Framework7.
The following code is used for active state in CSS style −
/* Usual state */
.my-button {
color: red;
}
/* Active/tapped state */
.my-button.active-state {
color: blue;
}
The following code shows the fallback compatibility, when Active state or Fast clicks is disabled −
/* Usual state */
.my-button {
color: red;
}
/* Active/tapped state */
.my-button.active-state {
color: blue;
}
/* Fallback, when active state is disabled */
html:not(.watch-active-state) .my-button:active {
color: blue;
}