react icon indicating copy to clipboard operation
react copied to clipboard

Custom Number Spinner/Stepper

Open dusave opened this issue 3 years ago • 2 comments

Description

The browser number spinner/steppers are not the greatest, visually: image

It would be nice if we could leverage our design patterns and language to build one out that is better

Design

  • [ ] Design is finalized. Link to mockups/prototypes:
  • [ ] Design is being finalized by feature team. Link to any in progress mockups:
  • [ ] Assistance requested in finalizing design

Component API

I believe the API that is given for the number input field is sufficient, but visually needs to be upgraded. Full API is here

Usage

This would be used for any location where a consumer needs to input or adjust number input fields

Implementation

Please describe how you would like this component to be built. Design systems is happy to help with the implementation of new components (as time/roadmap allows) but also recognizes that sometimes feature teams prefer to implement components themselves.

  • [ ] Feature team would like to implement this component
  • [ ] Feature team would like the Design Systems team to implement this component
  • [ ] This component is already built, feature team requests assistance moving it to Primer React Components from outside application
  • [x] Other: (please describe below)

I would be happy to implement such a control outside of Primer React and then upstream it. Or, I could partner in building it inside of Primer React. I would love to discuss any roadmap that you might have for new components

Timeline

No timeline constraints

What to expect next

A Design Systems engineer will read through your component proposal and get in touch! We'll gather any additional information needed and set up a Zoom call only if necessary. Once we have all relevant information, we'll add the component to our Primer React Components Roadmap. If you opt to build the component yourself, we are happy to help with pairing, brainstorming, etc. Generally, component work requested from internal feature teams receives higher priority over general (non-requested) improvements to the library.

dusave avatar Mar 17 '22 19:03 dusave

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Sep 13 '22 20:09 github-actions[bot]

I'm so sorry this never got a response @dusave! Our automation must have failed for a short while so this didn't end up on our project board for triage.

If this suggestion is still of interest, I'd suggest we engage Primer designers on this request. @tallys how would you suggest we proceed?

lesliecdubs avatar Sep 14 '22 05:09 lesliecdubs

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Mar 13 '23 05:03 github-actions[bot]

This would be useful in repos as well: https://github.com/github/github/pull/265294

siddharthkp avatar Mar 20 '23 15:03 siddharthkp

Hot take: primer/css has global style that hides the spin buttons!

https://github.com/primer/css/blob/main/src/forms/form-control.scss#L224-L231

siddharthkp avatar Mar 20 '23 15:03 siddharthkp

We should talk to a11y about how this should be implemented.

mperrotti avatar Mar 28 '23 14:03 mperrotti

Pinging @alliethu putting this on your radar

tallys avatar Mar 30 '23 17:03 tallys

Pinging FR! cc/ @primer/accessibility-design

alliethu avatar Mar 30 '23 19:03 alliethu

Would folks be okay with discussing this during the next Primer Patterns + API Working Session? There's a lot of nuance when it comes to recreating native functionality, and with spin buttons in particular.

Some reading on the subject, if you have the time.

ericwbailey avatar Mar 30 '23 19:03 ericwbailey

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Sep 26 '23 20:09 github-actions[bot]

Not technically stale, but also not high on the priority list at the moment. Let's leave it open, but keep in the backlog unless there is a reason to reconsider the priority.

lesliecdubs avatar Sep 30 '23 01:09 lesliecdubs

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Mar 28 '24 02:03 github-actions[bot]