@@ -34,6 +34,7 @@ function SliderThumb(props: ISliderThumbProps, ref: any) {
34
34
thumbSize,
35
35
isReadOnly,
36
36
isDisabled,
37
+ _interactionBox : interactionBoxContext ,
37
38
} = React . useContext ( SliderContext ) ;
38
39
const {
39
40
onFocus,
@@ -45,6 +46,7 @@ function SliderThumb(props: ISliderThumbProps, ref: any) {
45
46
'SliderThumb' ,
46
47
{
47
48
size : thumbSize ,
49
+ _interactionBox : interactionBoxContext ,
48
50
colorScheme,
49
51
...props ,
50
52
} ,
@@ -98,7 +100,7 @@ function SliderThumb(props: ISliderThumbProps, ref: any) {
98
100
...stylingProps . layout ,
99
101
...stylingProps . flexbox ,
100
102
...stylingProps . position ,
101
- '_text' ,
103
+ ... stylingProps . outline ,
102
104
] ) ;
103
105
104
106
const [
@@ -120,7 +122,8 @@ function SliderThumb(props: ISliderThumbProps, ref: any) {
120
122
{ ...thumbProps }
121
123
{ ...resolvedProps }
122
124
{ ...accessibilityProps }
123
- style = { [ thumbStyles , props . style ] }
125
+ { ...layoutProps }
126
+ style = { [ thumbStyles , resolvedProps . style ] }
124
127
onFocus = { ( e : any ) => {
125
128
handleFocus ( true , onFocus ? ( ) => onFocus ( e ) : ( ) => { } ) ;
126
129
} }
@@ -131,19 +134,15 @@ function SliderThumb(props: ISliderThumbProps, ref: any) {
131
134
// {...(isDisabled && _disabled)}
132
135
ref = { mergeRefs ( [ _ref , ref ] ) }
133
136
>
134
- < Stack { ...layoutProps } { ..._stack } >
135
- < Center >
136
- < Box { ..._interactionBox } size = { thumbSize } />
137
- < Center { ...nonAccessibilityProps } >
138
- < Box >
139
- { props . children }
140
- { Platform . OS === 'web' && (
141
- < VisuallyHidden >
142
- < input ref = { inputRef } { ...inputProps } />
143
- </ VisuallyHidden >
144
- ) }
145
- </ Box >
146
- </ Center >
137
+ < Stack { ..._stack } >
138
+ < Box { ..._interactionBox } />
139
+ < Center { ...nonAccessibilityProps } >
140
+ { props . children }
141
+ { Platform . OS === 'web' && (
142
+ < VisuallyHidden >
143
+ < input ref = { inputRef } { ...inputProps } />
144
+ </ VisuallyHidden >
145
+ ) }
147
146
</ Center >
148
147
</ Stack >
149
148
</ Box >
0 commit comments