Skip to content

Commit c74dffd

Browse files
authored
fix(modal): change alert style in modal (#566)
#565
1 parent b689c8a commit c74dffd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/modal/index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ $modal-max-height: 80vh;
1010
flex: 1;
1111
display: flex;
1212
flex-direction: column;
13-
.dt-modal-body {
13+
.dtc-modal-body {
1414
flex: 1;
1515
padding: 16px 24px;
1616
overflow-y: auto;
1717
min-height: 0;
1818
}
19+
.dtc-modal-alert {
20+
border-radius: 6px;
21+
margin: 4px;
22+
}
1923
}
2024
.ant-modal-header,
2125
.ant-modal-footer {

src/modal/modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function Modal({
4242
>
4343
{banner && (
4444
<Alert
45+
className="dtc-modal-alert"
4546
message={isValidBanner(banner) ? banner : banner.message}
4647
banner
4748
{...(isValidBanner(banner) ? {} : omit(banner, 'message'))}

0 commit comments

Comments
 (0)