We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a585398 commit 587f14eCopy full SHA for 587f14e
.changeset/cruel-frogs-accept.md
@@ -0,0 +1,7 @@
1
+---
2
+'@leafygreen-ui/modal': patch
3
+'@leafygreen-ui/confirmation-modal': patch
4
+'@leafygreen-ui/marketing-modal': patch
5
6
+
7
+Add explicit `margin: auto;` to `<dialog>` element styles to prevent `margin` property being reset
packages/modal/src/Modal/Modal.styles.ts
@@ -59,6 +59,7 @@ const getBaseDialogStyles = (theme: Theme) => css`
59
background-color: ${color[theme].background[Variant.Primary][
60
InteractionState.Default
61
]};
62
+ margin: auto;
63
padding: ${spacing[1000]}px ${spacing[900]}px;
64
color: ${color[theme].text[Variant.Primary][InteractionState.Default]};
65
font-family: ${fontFamilies.default};
0 commit comments