Skip to content

Commit

Permalink
Avoid hover state for coarse pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees committed Mar 18, 2019
1 parent b465407 commit 7917525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/checkboxes/_checkboxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
// We can't use `@media (hover: hover)` because we wouldn't get the hover
// state in browsers that don't support `@media (hover)` (like Internet
// Explorer) – so we have to 'undo' the hover state instead.
@media (hover: none) {
@media (hover: none), (pointer: coarse) {
.govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label::before {
box-shadow: initial;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/radios/_radios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
// We can't use `@media (hover: hover)` because we wouldn't get the hover
// state in browsers that don't support `@media (hover)` (like Internet
// Explorer) – so we have to 'undo' the hover state instead.
@media (hover: none) {
@media (hover: none), (pointer: coarse) {
.govuk-radios__item:hover .govuk-radios__input:not(:disabled) + .govuk-radios__label::before {
box-shadow: initial;
}
Expand Down

0 comments on commit 7917525

Please sign in to comment.