File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
packages/material-ui/src/Slider Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export const styles = theme => ({
136136 height : 2 ,
137137 width : '100%' ,
138138 boxSizing : 'content-box' ,
139- padding : '11px 0' ,
139+ padding : '13px 0' ,
140140 display : 'inline-block' ,
141141 position : 'relative' ,
142142 cursor : 'pointer' ,
@@ -152,7 +152,7 @@ export const styles = theme => ({
152152 '&$vertical' : {
153153 width : 2 ,
154154 height : '100%' ,
155- padding : '0 11px ' ,
155+ padding : '0 13px ' ,
156156 } ,
157157 // The primary input mechanism of the device includes a pointing device of limited accuracy.
158158 '@media (pointer: coarse)' : {
@@ -247,11 +247,12 @@ export const styles = theme => ({
247247 '&::after' : {
248248 position : 'absolute' ,
249249 content : '""' ,
250- // reach 48px touch target (2 * 18 + thumb circumference)
251- left : - 18 ,
252- top : - 18 ,
253- right : - 18 ,
254- bottom : - 18 ,
250+ borderRadius : '50%' ,
251+ // x10 thumb surface (from 12px^2 to 38px^2).
252+ left : - 14 ,
253+ top : - 14 ,
254+ right : - 14 ,
255+ bottom : - 14 ,
255256 } ,
256257 '&$focusVisible,&:hover' : {
257258 boxShadow : `0px 0px 0px 8px ${ fade ( theme . palette . primary . main , 0.16 ) } ` ,
@@ -317,12 +318,12 @@ export const styles = theme => ({
317318 ...theme . typography . body2 ,
318319 color : theme . palette . text . secondary ,
319320 position : 'absolute' ,
320- top : 22 ,
321+ top : 26 ,
321322 transform : 'translateX(-50%)' ,
322323 whiteSpace : 'nowrap' ,
323324 '$vertical &' : {
324325 top : 'auto' ,
325- left : 22 ,
326+ left : 26 ,
326327 transform : 'translateY(50%)' ,
327328 } ,
328329 '@media (pointer: coarse)' : {
You can’t perform that action at this time.
0 commit comments