Skip to content

Commit

Permalink
fix: #545 Alert icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Feb 7, 2024
1 parent c9d206c commit c167c5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/alert/demo/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Alert } from 'antd';
ReactDOM.render(
<div>
<Alert style={{ marginBottom: 20 }} message="Success Text" type="success" showIcon closable />
<Alert style={{ marginBottom: 20 }} message="Informational Notes" type="info" showIcon closable />
<Alert style={{ marginBottom: 20, width: '200px' }} message="Informational Notes" type="info" showIcon closable />
<Alert style={{ marginBottom: 20 }} message="Warning Text" type="warning" showIcon closable />
<Alert style={{ marginBottom: 20 }} message="Error Text" type="error" showIcon closable />
<Alert style={{ marginBottom: 20 }} message="Error Text" type="error" description="Error Description Error Description Error Description Error Description Error Description Error Description" showIcon closable />
Expand Down
6 changes: 3 additions & 3 deletions theme/dt-theme/default/alert.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.ant-alert-icon {
top: 13px;
left: 16px;
font-size: 16px;
font-size: 20px;
}

.ant-alert-close-icon {
Expand All @@ -27,8 +27,8 @@
.ant-alert-icon {
top: 13px;
left: 20px;
font-size: 16px;
margin-top: 3px;
font-size: 20px;
margin-top: 1px;
margin-right: 8px;
}
.ant-alert-close-icon {
Expand Down
2 changes: 1 addition & 1 deletion theme/dt-theme/default/notice.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
line-height: 22px;
> .ant-alert-icon {
align-self: flex-start;
margin-top: 3px;
margin-top: 1px;
}
> .ant-alert-close-icon {
align-self: flex-start;
Expand Down

0 comments on commit c167c5c

Please sign in to comment.