RangeControl: if there are only 2 options, transform into a button group #12430
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Type] Enhancement
A suggestion for improvement.
Milestone
Is your feature request related to a problem? Please describe.
A RangeControl is sometimes used when there are only 2 options, like selecting between 1 or 2 columns in the image gallery block. This is a bad user experience because only the extreme ends of the range slider are selectable. It's hard to use. A text field is also not needed if there are only 2 options. The text field is misleading in that it seems like I can input any number I'd like.
Describe the solution you'd like
I suggest that we create a guideline saying that RangeControls should only be used when the options are 3 or greater.
If there are only 2, then a button group is used.
The text was updated successfully, but these errors were encountered: