Skip to content

Commit e5f24c3

Browse files
authored
improve(design): Button loading style and small Button icon size (#1400)
1 parent b0d05d4 commit e5f24c3

File tree

1 file changed

+11
-0
lines changed
  • packages/design/src/button/style

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ export const genButtonStyle: GenerateStyle<ButtonToken> = (token: ButtonToken) =
3737
[`${componentCls}`]: {
3838
// remove box-shadow for button
3939
boxShadow: 'none !important',
40+
// button outlined and dashed style
4041
[`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
42+
// loading style
43+
[`&${componentCls}-loading`]: {
44+
backgroundColor: token.colorBgContainerDisabled,
45+
},
46+
// disabled style
4147
[`&:not(:disabled):not(${componentCls}-disabled):hover`]: {
4248
[`&:not(${componentCls}-color-dangerous)`]: {
4349
borderColor: token.gray7,
@@ -49,6 +55,11 @@ export const genButtonStyle: GenerateStyle<ButtonToken> = (token: ButtonToken) =
4955
},
5056
},
5157
},
58+
[`${componentCls}${componentCls}-sm`]: {
59+
[`${componentCls}-icon`]: {
60+
fontSize: token.fontSize,
61+
},
62+
},
5263
};
5364
};
5465

0 commit comments

Comments
 (0)