wearekuva/oui

Slider has no label when numericStepper disabled

Opened this issue · 2 comments

Using a slider control without a NumericStepper causes it to be displayed without a label.

The includeStepper property was actually added as a workaround for the ColorPicker as a way to display sliders without labels or steppers. It was never really introduced as a feature and is inconsistent with the other components. I'm tempted to remove includeStepper, but I'd be interested to see what your thoughts are. The core components are supposed to be composable to to create more complex ui, so maybe there is a case to keep it in.

If a slider can have an optional label, the same can probably be achieved by adding a numericstepper, then adding a slider without a label for the same object property.

If that works then there's no need for includeStepper, I think.