Skip to content

Commit 9f34e21

Browse files
authored
V3 Update Modal (#234)
1 parent ae2feb6 commit 9f34e21

File tree

3 files changed

+11
-11
lines changed
  • @stellar

3 files changed

+11
-11
lines changed

@stellar/design-system-website/docs/components/containers/modal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ description: "A dialog window with an overlay background."
4040
<Button size="sm" variant="primary">
4141
Submit
4242
</Button>
43-
<Button size="sm" variant="secondary">
43+
<Button size="sm" variant="tertiary">
4444
Cancel
4545
</Button>
4646
</Modal.Footer>

@stellar/design-system-website/src/components/PreviewBlock/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export const PreviewBlock = ({
382382
</p>
383383
</Modal.Body>
384384
<Modal.Footer>
385-
<Button size="md" variant="secondary">
385+
<Button size="md" variant="tertiary">
386386
Cancel
387387
</Button>
388388
<Button size="md" variant="primary">
@@ -421,7 +421,7 @@ export const PreviewBlock = ({
421421
</p>
422422
</Modal.Body>
423423
<Modal.Footer itemAlignment="stretch">
424-
<Button size="md" variant="secondary">
424+
<Button size="md" variant="tertiary">
425425
Cancel
426426
</Button>
427427
<Button size="md" variant="primary">
@@ -463,7 +463,7 @@ export const PreviewBlock = ({
463463
<Button size="md" variant="primary">
464464
Submit
465465
</Button>
466-
<Button size="md" variant="secondary">
466+
<Button size="md" variant="tertiary">
467467
Cancel
468468
</Button>
469469
</Modal.Footer>

@stellar/design-system/src/components/Modal/styles.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
var(--sds-overlay-01);
3838
border-radius: pxToRem(8px);
3939
z-index: calc(var(--sds-z-index-modal) + 1);
40-
padding: pxToRem(24px);
40+
padding: pxToRem(16px);
4141
margin-top: var(--Modal-offset-top);
4242
top: 35%;
4343
left: 50%;
@@ -55,11 +55,11 @@
5555

5656
.ModalHeading {
5757
color: var(--sds-clr-gray-12);
58-
font-size: pxToRem(18px);
59-
line-height: pxToRem(26px);
58+
font-size: pxToRem(16px);
59+
line-height: pxToRem(24px);
6060
font-weight: var(--sds-fw-medium);
6161
margin: 0;
62-
margin-bottom: pxToRem(12px);
62+
margin-bottom: pxToRem(8px);
6363
width: calc(100% - 2rem);
6464
}
6565

@@ -89,7 +89,7 @@
8989
.ModalFooter {
9090
display: flex;
9191
width: 100%;
92-
margin-top: pxToRem(24px);
92+
margin-top: pxToRem(16px);
9393
gap: pxToRem(8px);
9494

9595
&--right {
@@ -126,8 +126,8 @@
126126

127127
&__close {
128128
position: absolute;
129-
top: pxToRem(18px);
130-
right: pxToRem(16px);
129+
top: pxToRem(12px);
130+
right: pxToRem(8px);
131131
cursor: pointer;
132132

133133
.NavButton {

0 commit comments

Comments
 (0)