Open 6farer opened 1 week ago
When providing disabled={true} as a prop for RangeSlider, the label does not gray out.
It seems the Labelled component inside of RangeSlider does not receive the disabled prop.
See where the fixes needs to be made: https://github.com/Shopify/polaris/blob/c77ac4631f5f6afab4eabd75e21bbf27903220fa/polaris-react/src/components/RangeSlider/components/DualThumb/DualThumb.tsx#L233 https://github.com/Shopify/polaris/blob/c77ac4631f5f6afab4eabd75e21bbf27903220fa/polaris-react/src/components/RangeSlider/components/SingleThumb/SingleThumb.tsx#L89
When disabled={true} on RangeSlider, label is grayed out.
When disabled={true} on RangeSlider, label is not grayed out.
Link to sandbox
None
13.9.0
Any
Summary
When providing disabled={true} as a prop for RangeSlider, the label does not gray out.
It seems the Labelled component inside of RangeSlider does not receive the disabled prop.
See where the fixes needs to be made: https://github.com/Shopify/polaris/blob/c77ac4631f5f6afab4eabd75e21bbf27903220fa/polaris-react/src/components/RangeSlider/components/DualThumb/DualThumb.tsx#L233 https://github.com/Shopify/polaris/blob/c77ac4631f5f6afab4eabd75e21bbf27903220fa/polaris-react/src/components/RangeSlider/components/SingleThumb/SingleThumb.tsx#L89
Expected behavior
When disabled={true} on RangeSlider, label is grayed out.
Actual behavior
When disabled={true} on RangeSlider, label is not grayed out.
Steps to reproduce
Link to sandbox
Are you using React components?
None
Polaris version number
13.9.0
Browser
Any
Device
Any