Skip to content

Commit

Permalink
[Slider] Increase hover hitbox for thumb
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 28, 2019
1 parent e049ad8 commit 4a8de83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/material-ui/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,15 @@ export const styles = theme => ({
transition: theme.transitions.create(['box-shadow'], {
duration: theme.transitions.duration.shortest,
}),
'&::after': {
position: 'absolute',
content: '""',
// reach 48px touch target (2 * 18 + thumb circumference)
left: -18,
top: -18,
right: -18,
bottom: -18,
},
'&$focusVisible,&:hover': {
boxShadow: `0px 0px 0px 8px ${fade(theme.palette.primary.main, 0.16)}`,
'@media (hover: none)': {
Expand Down

0 comments on commit 4a8de83

Please sign in to comment.