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

NumericStepper – skjule verdien dersom verdien er null + forbedret UU #712

Merged
merged 2 commits into from
May 24, 2023

Conversation

selbekk
Copy link
Contributor

@selbekk selbekk commented May 24, 2023

Bakgrunn

Om man har valgt 0 ting, burde man ikke vise tallet. Og så burde tallet leses opp dersom man endrer verdien med knapper.

Løsning

Implementer dette ved å bruke visibility, så den fortsetter å ta opp plass.

2023-05-24 11 53 46

Also, legg til aria-live="assertive" og aria-label, slik at skjermlesere leser opp den nye verdien når man trykker på knapper.

@changeset-bot
Copy link

changeset-bot bot commented May 24, 2023

🦋 Changeset detected

Latest commit: a209223

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

This PR includes changesets to release 1 package
Name Type
@vygruppen/spor-react 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

Comment on lines +108 to +109
aria-live="assertive"
aria-label={value}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Input-felt leser ikke opp innholdet sitt automatisk, selv om man har aria-live på. Derfor må man bruke aria-label i tillegg, så den får med seg at ting endrer seg.

@selbekk selbekk merged commit 785671d into main May 24, 2023
@selbekk selbekk deleted the hide-zeroes branch May 24, 2023 09:55
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.

1 participant