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

fix(Dialog): non-modal and support position in display: flex #3148

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

eirikbacker
Copy link
Contributor

  • Only add overflow: hidden to <body> if opened by .showModal() (not when non-modal .show())
  • Use top: 50%; left: 50%; transform: -50% -50% for positioning instead of margin: auto; inset: 0 as the latter does not center <dialog> if placed inside a display: flex

@eirikbacker eirikbacker self-assigned this Feb 13, 2025
Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 5a73346

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

This PR includes changesets to release 4 packages
Name Type
@digdir/designsystemet-css Patch
@digdir/designsystemet Patch
@digdir/designsystemet-theme Patch
@digdir/designsystemet-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

Copy link
Contributor

github-actions bot commented Feb 13, 2025

Preview deployments for this pull request:

Storybook - 14. Feb 2025 - 12:23

Copy link
Contributor

github-actions bot commented Feb 13, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 50.33% 3206 / 6369
🔵 Statements 50.33% 3206 / 6369
🔵 Functions 85.31% 215 / 252
🔵 Branches 77.93% 558 / 716
File CoverageNo changed files found.
Generated in workflow #2086 for commit 5a73346 by the Vitest Coverage Report Action

@eirikbacker eirikbacker requested a review from Barsnes February 14, 2025 11:21
@mimarz mimarz merged commit 781f0ef into next Feb 14, 2025
10 checks passed
@mimarz mimarz deleted the fix/dialog-in-flex-and-non-modal-support branch February 14, 2025 12:19
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.

3 participants