Skip to content

Commit

Permalink
Mobile improvements in Drawer (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindskogen authored Oct 13, 2023
1 parent 7124680 commit a10c719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/modal/src/components/drawer/Drawer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
&.floating {
margin: var(--swui-metrics-space);
border-radius: var(--swui-border-radius);

@media (max-width: 768px) {
margin: 0;
border-radius: 0;
}
}

&:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/* Styling */

background-color: var(--current-background-color);
height: 100vh;
height: 100dvh;

button {
--swui-button-text-color: var(--swui-white);
Expand Down

0 comments on commit a10c719

Please sign in to comment.