Skip to content

Commit

Permalink
fix(checkbox): improve accessibility on safari
Browse files Browse the repository at this point in the history
- by removing height, width, and left CSS, you can use keyboard navigation on Safari
  • Loading branch information
theetrain committed Dec 14, 2017
1 parent 05bb56d commit e2213a1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/Choice/Choice.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@
// Set opacity: 0 instead of display: none so that the checkbox can still
// emit focus/blur events
opacity: 0;
width: 0;
height: 0;

// to make sure the selected state (green circle) is properly aligned on mobile devices
position: absolute;
left: -10000px;
top: auto;
}

0 comments on commit e2213a1

Please sign in to comment.