File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
packages/design/src/alert Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import React from 'react';
33
44const 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
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments