Skip to content

Commit

Permalink
[Dialog]: scroll entire dialog instead of just .body
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanBreck committed Dec 9, 2024
1 parent db52fd2 commit 1227f1a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/dialog/dialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
}
.leo-dialog.hasHeader {
grid-template-rows: auto 1fr;
grid-template-rows: auto auto;
}
/** Since Svelte 4 doesn't support conditional slots in the consumer,
Expand All @@ -163,12 +163,12 @@
* case the selector with :host. */
:host .leo-dialog.hasActions,
.leo-dialog.hasActions:has([slot='actions']:not(:empty)) {
grid-template-rows: 1fr auto;
grid-template-rows: auto auto;
}
:host .leo-dialog.hasHeader.hasActions,
.leo-dialog.hasHeader.hasActions:has(.actions [slot='actions']:not(:empty)) {
grid-template-rows: auto 1fr auto;
grid-template-rows: auto auto auto;
}
.leo-dialog:not(.modal) {
Expand Down Expand Up @@ -209,7 +209,6 @@
}
.leo-dialog .body {
overflow-y: auto;
background: var(--background);
color: var(--leo-color-text-secondary);
font: var(--leo-font-default-regular);
Expand Down

0 comments on commit 1227f1a

Please sign in to comment.