Number Input - Feature request #5247
-
SummarySummary the request and address the questions as appropriate.
I want to propose to Clarity to create a stepper input as an additional way to change the value inside an input. I work for the vSphere UX team. At the moment, we are porting the UI from Kendo to Clarity and Angular. Clarity does not support "input stepper" or a "number input." I think that component has certain benefits that would be useful to the vSphere users and other Clarity users.
Use caseProvide some specific details about how this change would improve your application and use case. Number input will enable more control when a user needs to edit a numeric value and reduce the interaction cost + reducing the possibility of errors. ExamplesAre there any examples in other projects that demonstrate this feature or enhancement? Here is an example in a couple of design systems that shows how this feature might work: WorkaroundsIs there a workaround for this feature at the moment, even if it is less than ideal? Yes, there is a workaround for this feature at this point. It is the Clarity input. Some deficiencies of the workaround:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Stepper is forms based and works with the form controls Clarity provides, including the number input type. Is something like this not working for you? If it is not working please post a minimal stackblitz with the stepper and input code that is not working and we can investigate further. <input type="number" clrInput placeholder="My input" name="input" [(ngModel)]="input" /> |
Beta Was this translation helpful? Give feedback.
-
I ran a stackblizt with stepper and input code, and it is working. The challenge I see in this implementation is that the stepper is browser native. It doesn't have the Clarity styling, which I believe would benefit vSphere users and Clarity users alike. |
Beta Was this translation helpful? Give feedback.
-
There are actually benefits to leaning on browser defaults since users are more likely to be familiar with them, and it works well for accessibility use cases not to rebuild a browser native behavior. That is why we haven't invested in replacing this functionality with a custom number input. Since this is a feature request, I'm going to move it to our GitHub discussions instead. |
Beta Was this translation helpful? Give feedback.
Stepper is forms based and works with the form controls Clarity provides, including the number input type. Is something like this not working for you? If it is not working please post a minimal stackblitz with the stepper and input code that is not working and we can investigate further.