Skip to content

Scrubbable Numeric Input #1528

Open
@bengfarrell

Description

Expected Behaviour

  • Numeric input should offer an ability to turn on "scrubbing" or click and drag to increment/decrement
  • Also, a user should be able to hold a shift key down to accelerate the steps when using the arrow keys.

So, I could make a PR for this, but I think I'm too far ahead of the curve to even be under consideration against Spectrum design recommendations. I'm also messing with component and input element focus in ways that probably need more thought (that might impact FocusableBase maybe). It's also up to opinion whether the properties I created should act and are named the way I did them.

However, given that I thought more projects might want the feature, I thought I'd offer up a first pass, including storybook documentation as well.

For me, I'm just going to copy and paste into my project regardless, but maybe this'll help!

https://github.com/bengfarrell/spectrum-web-components

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions