Skip to content

Commit cc31e6f

Browse files
authored
Infra/ designTokens disabled Slider (#2033)
1 parent bd45ce7 commit cc31e6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/slider/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ export default class Slider extends PureComponent<SliderProps, State> {
515515
{...this._panResponder.panHandlers}
516516
style={[
517517
styles.thumb,
518+
disabled && styles.disabledThumb,
518519
thumbStyle,
519520
{
520521
backgroundColor: disabled ? DEFAULT_COLOR : thumbTintColor || ACTIVE_COLOR
@@ -621,6 +622,9 @@ const styles = StyleSheet.create({
621622
shadowRadius: SHADOW_RADIUS,
622623
elevation: 2
623624
},
625+
disabledThumb: {
626+
borderColor: Colors.$backgroundElevated
627+
},
624628
activeThumb: {
625629
width: THUMB_SIZE + 16,
626630
height: THUMB_SIZE + 16,

0 commit comments

Comments
 (0)