Skip to content

Commit 68d5c5e

Browse files
Increase thumb area by 2px
1 parent b8e0814 commit 68d5c5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/material-ui/src/Slider/Slider.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ export const styles = theme => ({
248248
position: 'absolute',
249249
content: '""',
250250
borderRadius: '50%',
251-
// x10 thumb surface (from 12px^2 to 40px^2).
252-
left: -14,
253-
top: -14,
254-
right: -14,
255-
bottom: -14,
251+
// reach 42px hit target (2 * 15 + thumb diameter)
252+
left: -15,
253+
top: -15,
254+
right: -15,
255+
bottom: -15,
256256
},
257257
'&$focusVisible,&:hover': {
258258
boxShadow: `0px 0px 0px 8px ${fade(theme.palette.primary.main, 0.16)}`,

0 commit comments

Comments
 (0)