Skip to content

feat(dialog): drawer#4323

Merged
Barsnes merged 16 commits intomainfrom
feat/dialog-drawer
Dec 16, 2025
Merged

feat(dialog): drawer#4323
Barsnes merged 16 commits intomainfrom
feat/dialog-drawer

Conversation

@oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented Dec 12, 2025

resolves #4322

Notes:

  • top and bottom retains border-radius in the content-facing direction when non-modal if there is a scrollbar present. I could make a media query where the "buffer" in the calculation that triggers the switch to 0 is increased to 17px to account for the scrollbar on wider viewports but i feel like this is unneccessary ref the github sidesheet discussion (being a part of the layout vs overlaying the layout)
  • top and bottom has border on the sides in case the user wants to reduce the max-width to less than 100%. I have not figured a way to auto-toggle the inline-border based on dialog-width vs viewport width yet (perhaps a progressive enhancement with if() or container style query is possible)

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

🦋 Changeset detected

Latest commit: b35b20f

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

This PR includes changesets to release 5 packages
Name Type
@digdir/designsystemet-react Minor
@digdir/designsystemet-css Minor
@digdir/designsystemet Minor
@digdir/designsystemet-theme Minor
@digdir/designsystemet-types Minor

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

github-actions bot commented Dec 12, 2025

Preview deployments for this pull request:

storybook - 16. Dec 2025 - 12:37

www - 16. Dec 2025 - 12:43

@oddvernes oddvernes marked this pull request as ready for review December 16, 2025 09:50
@Barsnes
Copy link
Member

Barsnes commented Dec 16, 2025

Can you add a story for each placement in Storybook? So we get visual tests for it

Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

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

Great work!

oddvernes and others added 5 commits December 16, 2025 12:33
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
@Barsnes Barsnes merged commit 47082c5 into main Dec 16, 2025
18 checks passed
@Barsnes Barsnes deleted the feat/dialog-drawer branch December 16, 2025 12:44
@github-actions github-actions bot mentioned this pull request Dec 16, 2025
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.

make drawer variants for dialog

2 participants