Skip to content

Commit

Permalink
Merge pull request #61 from vaadin/fix/touch-hover
Browse files Browse the repository at this point in the history
Disable hover effect on touch devices
  • Loading branch information
web-padawan authored Jan 5, 2018
2 parents 0da9c67 + 49dde3a commit b409b30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions theme/valo/vaadin-checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@
background-color: var(--valo-contrast-30pct);
}

/* Disable hover for touch devices */
@media (pointer: coarse) {
:host(:not([checked]):not([indeterminate]):not([disabled]):hover) [part="checkbox"] {
background-color: var(--valo-contrast-20pct);
}
}

/* Active */

:host([active]) [part="checkbox"] {
Expand Down

0 comments on commit b409b30

Please sign in to comment.