Commit da32f2d 1 parent 24190be commit da32f2d Copy full SHA for da32f2d
File tree 1 file changed +4
-9
lines changed
packages/components/src/range-control/styles
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,15 @@ import type {
23
23
import type { NumberControlProps } from '../../number-control/types' ;
24
24
25
25
const rangeHeightValue = 30 ;
26
- const rangeHeightValueNext = 40 ;
27
26
const railHeight = 4 ;
28
27
const rangeHeight = ( ) =>
29
28
css ( { height : rangeHeightValue , minHeight : rangeHeightValue } ) ;
30
29
const thumbSize = 12 ;
31
30
32
- const rootMinHeight = ( {
31
+ const deprecatedHeight = ( {
33
32
__next40pxDefaultSize,
34
33
} : Pick < RangeControlProps , '__next40pxDefaultSize' > ) =>
35
- css ( {
36
- minHeight : __next40pxDefaultSize
37
- ? rangeHeightValueNext
38
- : rangeHeightValue ,
39
- } ) ;
34
+ ! __next40pxDefaultSize && css ( { minHeight : rangeHeightValue } ) ;
40
35
41
36
type RootProps = Pick < RangeControlProps , '__next40pxDefaultSize' > ;
42
37
export const Root = styled . div < RootProps > `
@@ -48,9 +43,9 @@ export const Root = styled.div< RootProps >`
48
43
position: relative;
49
44
touch-action: none;
50
45
width: 100%;
51
-
46
+ min-height: 40px;
52
47
/* TODO: remove after removing the __next40pxDefaultSize prop */
53
- ${ rootMinHeight }
48
+ ${ deprecatedHeight } ;
54
49
` ;
55
50
56
51
const wrapperColor = ( { color = COLORS . ui . borderFocus } : WrapperProps ) =>
You can’t perform that action at this time.
0 commit comments