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

🐛 Modal: Bedre støtte for Tooltip i Modal #2429

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Conversation

HalvorHaugan
Copy link
Contributor

For at Tooltip skal kunne blø ut av en modal må den ha position:fixed og modalen kan ikke ha overflow:auto/scroll. For å unngå at tooltip vises når modalen åpnes og det er det første fokuserbare elementet i modalen, settes autofocus på dialog-elementet. Dette fungerer imidlertid ikke i Chrome, så animationFrame: true i Tooltip er for å redusere et problem med at tooltipen hopper hit og dit mens modalens åpne-animasjon kjører.

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2023

🦋 Changeset detected

Latest commit: 163329d

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

@github-actions
Copy link
Contributor

Storybook demo

Endringer til review: 1

9732e0e11 | 59 komponenter | 390 stories

@HalvorHaugan HalvorHaugan merged commit 0c7fc04 into main Oct 27, 2023
@HalvorHaugan HalvorHaugan deleted the modal-popover-fix branch October 27, 2023 08:47
@github-actions github-actions bot mentioned this pull request Oct 27, 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