Resonance Logo

Quantity Stepper

An accessible number input with clearly labeled increment and decrement controls that communicates boundary states and current values to both sighted users and assistive technology.

Demo

Use the minus and plus buttons to adjust the quantity below. Try reaching the minimum value of 1 and observe how the decrement button responds. You can also type a value directly into the number field. Navigate the component using only a keyboard and listen for how the current value and any boundary states are communicated to a screen reader.

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Group label: A visible or visually associated label that identifies the stepper's purpose in context (e.g., "Quantity" or "Number of items").
  2. Decrement button: Reduces the value by one step; labeled with text such as "Decrease quantity" rather than relying on the "–" character alone.
  3. Quantity input: A number input field showing the current value; directly editable by keyboard and associated with the group label.
  4. Increment button: Increases the value by one step; labeled with text such as "Increase quantity" rather than relying on the "+" character alone.
  5. Boundary state indicator: The disabled state applied to either button when the minimum or maximum limit is reached, communicated both visually and programmatically.

Accessibility Behavior

Common Mistakes

Why This Matters

Quantity steppers appear at critical decision points: product detail pages, cart summaries, and checkout. A blind user who cannot determine which direction the unlabeled "+" button adjusts, or who cannot tell whether the control has reached a minimum, may add the wrong number of items to their cart and only discover the error at checkout. A keyboard-only user who finds the decrement button still focusable at the minimum limit may become confused when activating it produces no result. Accessible quantity steppers keep all users in control of one of the most consequential inputs in the shopping flow.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation