Skip to content

Commit c3c0c0e

Browse files
committed
fix: bring back dialog content padding
Tailwind 3.3.3 introduced a change by which the default user agent dialog element padding is reset to none: tailwindlabs/tailwindcss#11069 This caused the dialog to consistently not display as intended accross browsers. To fix that, let's manually set the padding to the one we expected.
1 parent 446a668 commit c3c0c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Dialog.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { id, ...props } = Astro.props;
1515

1616
<style lang="scss">
1717
dialog {
18-
@apply rounded-md bg-amber-50 opacity-0 shadow-2xl transition-opacity duration-1000;
18+
@apply rounded-md p-4 bg-amber-50 opacity-0 shadow-2xl transition-opacity duration-1000;
1919
}
2020

2121
dialog[open] {

0 commit comments

Comments
 (0)