carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[TimePickerDropdown] Single label for range does not span across element
What package is this for?
- [X] React
- [ ] Angular
Describe the bug
When the option to hide secondary label is chosen on a range input the primary label is supposed to span across both text input fields. Now there is a max width being applied which is needed when both labels are shown. The fix is to just apply a :not(legend) to the end of the selector applying the max width to the labels.
To Reproduce
Steps to reproduce the behavior:
- Go to this story
- Click the
hide secondary labelknob and choose range from theTypedropdown - Make the text in the
i18nknob's labelText field a long string - See error
Please create a reduced test case in CodeSandbox: https://codesandbox.io/s/github/carbon-design-system/carbon-addons-iot-react/tree/next/packages/react/examples/codesandbox
Expected behavior
When secondary label is hidden the primary label should span the entire element.
| Current | Desired |
|---|---|
![]() |
![]() |

