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

Datepicker/MonthPicker required bugs #2838

Merged
merged 9 commits into from
Apr 11, 2024
Merged

Datepicker/MonthPicker required bugs #2838

merged 9 commits into from
Apr 11, 2024

Conversation

KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Apr 10, 2024

Description

Resolves #2829

MonthPicker sin "required"-prop gjorde ingenting. Fikset nå med at det returneres tidlig hvis knapp allerede er valgt og man klikker på den.

For Datepicker var problemet at onChange-event ++ ble kjørt når den ikke burde.

  • Satte opp tester i storybook for begge eksemplene

A11y

Oppdaget at react-day-picker bruker aria-selected på knappene, noe som ikke er lov. Riktig syntax for knapper er aria-pressed som Date og Month-pickers er oppdatert til å bruke nå. For MonthPicker vil dette være en stor forbedring da den ikke hadde noe selected/pressed fra før.

Copy link

changeset-bot bot commented Apr 10, 2024

🦋 Changeset detected

Latest commit: d455a3f

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/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons Patch
@navikt/aksel Patch
@navikt/aksel-stylelint 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 Apr 10, 2024

Storybook demo

Endringer til review: 1

dbc14de11 | 60 komponenter | 199 stories

KenAJoh and others added 4 commits April 11, 2024 07:22
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
HalvorHaugan
HalvorHaugan previously approved these changes Apr 11, 2024
@KenAJoh KenAJoh merged commit deae4ec into main Apr 11, 2024
2 checks passed
@KenAJoh KenAJoh deleted the datepicker-required-bug branch April 11, 2024 09:55
@github-actions github-actions bot mentioned this pull request Apr 11, 2024
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.

[Innspill til komponent]: <MonthPicker> sperre fjerning av valgt måned
2 participants