Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(input-stepper): move role=spinbutton to input node #2426

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

gerjanvangeest
Copy link
Member

@gerjanvangeest gerjanvangeest commented Dec 4, 2024

What I did

  1. To make input-stepper work with NVDA we move the role="spinbutton" to the inputNode.
  2. To make the decrease & increase buttons announce the new value, a hidden value element was created.

Before:

input-stepper_before.mp4

After:

input-stepper_after.mp4

Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: ced0dfa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gerjanvangeest gerjanvangeest force-pushed the fix/input-stepper-a11y-refactor branch from 398e5e7 to 4c32259 Compare December 9, 2024 14:06
@gerjanvangeest gerjanvangeest marked this pull request as ready for review December 9, 2024 14:07
@gerjanvangeest gerjanvangeest force-pushed the fix/input-stepper-a11y-refactor branch from 4c32259 to a0c0cd8 Compare December 10, 2024 15:47
@gerjanvangeest gerjanvangeest merged commit 67f5735 into master Dec 11, 2024
7 checks passed
@gerjanvangeest gerjanvangeest deleted the fix/input-stepper-a11y-refactor branch December 11, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants