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 now handles cases where it was opened with show() #3407

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Nov 26, 2024

Description

In Vergic (Screenshare solution), Modal was opened with open-prop. This currently breaks since body is set to overflow: hidden. In the case of the Modal not being visible on the screen, you then had no visual way to close it.

Component Checklist 📝

  • JSDoc
  • Examples
  • Documentation / Decision Records
  • Storybook
  • Style mappings (@navikt/core/css/config/_mappings.js)
  • Component tokens (@navikt/core/css/tokens.json)
  • CSS class deprecations (@navikt/aksel-stylelint/src/deprecations.ts)
  • Exports (@navikt/core/react/src/index.ts and @navikt/core/react/package.json)
  • New component? CSS import (@navikt/core/css/index.css)
  • Breaking change? Update migration guide. Consider codemod.
  • Changeset (Format: <Component>: <gitmoji?> <Text>. E.g. "Button: ✨ Add feature xyz.")

Copy link

changeset-bot bot commented Nov 26, 2024

🦋 Changeset detected

Latest commit: d81ddd0

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-css Patch
@navikt/aksel-stylelint Patch
@navikt/aksel Patch
@navikt/ds-react 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 26, 2024

Storybook demo

f73b91454 | 91 komponenter | 135 stories

@navikt/core/css/modal.css Outdated Show resolved Hide resolved
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
@KenAJoh KenAJoh enabled auto-merge (squash) November 26, 2024 15:18
@KenAJoh KenAJoh merged commit 9f088a9 into main Nov 26, 2024
3 checks passed
@KenAJoh KenAJoh deleted the modal-screenshare-fix branch November 26, 2024 15:19
@github-actions github-actions bot mentioned this pull request Nov 26, 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.

2 participants