Skip to content

Commit c5fff45

Browse files
feat(modal): add border (#20984)
* feat(modal): add border * fix: enable-dialog-element style precedence --------- Co-authored-by: Nikhil Tomar <63502271+2nikhiltom@users.noreply.github.com>
1 parent 007641d commit c5fff45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/react/src/components/Modal/Modal.stories.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
@use '@carbon/react/scss/components/multiselect/multiselect';
1717

1818
.preview-modal {
19+
@include dialog.dialog();
1920
@include modal.modal(
2021
$enable-experimental-focus-wrap-without-sentinels: true,
2122
$enable-focus-wrap-without-sentinels: true,
2223
$enable-dialog-element: true
2324
);
24-
@include dialog.dialog();
2525
@include text-input.text-input();
2626
@include select.select();
2727
@include dropdown.dropdown();

packages/styles/scss/components/modal/_modal.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
.#{$prefix}--modal-container {
9797
position: fixed;
9898
display: grid;
99+
border: 1px solid $border-subtle-01;
99100
background-color: $layer;
100101
grid-template-columns: 100%;
101102
grid-template-rows: auto 1fr auto;

0 commit comments

Comments
 (0)