Skip to content

Commit

Permalink
Get rid of potential 300ms pause with radios in mobile browsers
Browse files Browse the repository at this point in the history
Modern mobile browsers can disable the pause programmatically with touch-action: manipulation (thanks to @patrickhlauke for pointing that one out). In a general case on GOV.UK it’s not going to be particularly useful as it’s also disabled for viewport width=“device-width”, but if someone’s zoomed or are using a non-standard meta viewport this might help out.
  • Loading branch information
Robin Whittleton committed Nov 25, 2016
1 parent 02f6680 commit a7c7b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/sass/elements/forms/_form-block-labels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
margin-bottom: $gutter-one-third;

cursor: pointer; // Encourage clicking on block labels
touch-action: manipulation; // remove 300ms pause on mobile

@include media(tablet) {
float: left;
Expand Down

0 comments on commit a7c7b9d

Please sign in to comment.