Skip to content

Commit ac1ee07

Browse files
authored
improve(design): Alert mini style (#1388)
1 parent 65bfa37 commit ac1ee07

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/design/src/alert/demo/mini.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import React from 'react';
33

44
const App: React.FC = () => (
55
<Space direction="vertical" style={{ width: '100%' }}>
6-
<Alert message="Info Text" type="info" showIcon mini />
7-
<Alert message="Success Text" type="success" showIcon mini />
8-
<Alert message="Warning Text" type="warning" showIcon mini />
9-
<Alert message="Error Text" type="error" showIcon mini />
6+
<Alert message="Info Text" type="info" showIcon mini closable />
7+
<Alert message="Success Text" type="success" showIcon mini closable />
8+
<Alert message="Warning Text" type="warning" showIcon mini closable />
9+
<Alert message="Error Text" type="error" showIcon mini closable />
1010
</Space>
1111
);
1212

packages/design/src/alert/style/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ export const genAlertStyle: GenerateStyle<AlertToken> = (token: AlertToken): CSS
147147
borderRadius: 0,
148148
},
149149
[`${componentCls}${componentCls}-mini`]: {
150-
paddingBlock: 1,
150+
paddingBlock: token.paddingXXS,
151151
paddingInline: token.paddingXS,
152-
border: 'none',
153152
width: 'fit-content',
154153
display: 'inline-flex',
155154
alignItems: 'center',
@@ -160,8 +159,6 @@ export const genAlertStyle: GenerateStyle<AlertToken> = (token: AlertToken): CSS
160159
display: 'flex',
161160
alignItems: 'center',
162161
justifyContent: 'center',
163-
lineHeight: 1,
164-
fontSize: token.fontSizeSM,
165162
},
166163
[`${componentCls}-message`]: {
167164
whiteSpace: 'nowrap',

0 commit comments

Comments
 (0)