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

♿ Textarea: Forsinkelse ved live-opplesning av gjenstående tegn #2502

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

HalvorHaugan
Copy link
Contributor

@HalvorHaugan HalvorHaugan commented Nov 20, 2023

#2326

Laget eget element med role=status som får en "debounced" difference-verdi, som bare er i DOMen når det er mindre enn 20 tegn igjen. Dette gjør at skjermleseren ikke blir så "masete". Elementet får forresten display:none når textareaen er ute av fokus, slik at man ikke får opplest antall tegn etter at man har byttet fokus. Det er for å unngå forvirring hvis feltet man endrer fokus til er et annet tekstfelt.

Copy link

changeset-bot bot commented Nov 20, 2023

🦋 Changeset detected

Latest commit: cc2f1c9

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

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-react Patch
@navikt/ds-css Patch
@navikt/aksel-stylelint Patch
@navikt/aksel Patch
@navikt/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons 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

Copy link
Contributor

github-actions bot commented Nov 20, 2023

Storybook demo

Endringer til review: 1

048861711 | 61 komponenter | 399 stories

@HalvorHaugan HalvorHaugan marked this pull request as ready for review November 23, 2023 08:13
Copy link
Contributor

@it-vegard it-vegard left a comment

Choose a reason for hiding this comment

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

👍

@HalvorHaugan HalvorHaugan merged commit 9dafbeb into main Nov 23, 2023
2 checks passed
@HalvorHaugan HalvorHaugan deleted the textarea-debounced-sr-counter branch November 23, 2023 11:51
@github-actions github-actions bot mentioned this pull request Nov 23, 2023
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