Skip to content

Commit a87f6c4

Browse files
committed
Fix constant width value label again
1 parent ddfbc5e commit a87f6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/slider/src/SliderBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function SliderBase(props: SliderBaseProps) {
150150
role="textbox"
151151
aria-readonly="true"
152152
aria-labelledby={labelProps.id}
153-
style={{width: maxLabelLength && `${maxLabelLength}ch`}}>
153+
style={maxLabelLength && {width: `${maxLabelLength}ch`, minWidth: `${maxLabelLength}ch`}}>
154154
{displayValue}
155155
</div>);
156156

0 commit comments

Comments
 (0)