Skip to content

Commit 775de8c

Browse files
authored
improve(style): Modal title icon use fontSizeLG (#1391)
1 parent c18de28 commit 775de8c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,16 @@ export const genTableStyle = (padding: number, token: Partial<CardToken>): CSSOb
4141
};
4242

4343
export const genCardStyle: GenerateStyle<CardToken> = (token: CardToken): CSSObject => {
44-
const { componentCls, antCls, tabsComponentCls, tabsPrefixCls, paddingSM, paddingLG, calc } =
45-
token;
44+
const {
45+
antCls,
46+
iconCls,
47+
componentCls,
48+
tabsComponentCls,
49+
tabsPrefixCls,
50+
paddingSM,
51+
paddingLG,
52+
calc,
53+
} = token;
4654
const tableComponentCls = `${antCls}-table`;
4755
return {
4856
[`${componentCls}`]: {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export type ModalToken = FullToken<'Modal'>;
77
export const genModalStyle: GenerateStyle<ModalToken> = (token: ModalToken): CSSObject => {
88
const {
99
antCls,
10+
iconCls,
1011
componentCls,
1112
marginLG,
1213
fontSizeHeading5,
@@ -34,6 +35,9 @@ export const genModalStyle: GenerateStyle<ModalToken> = (token: ModalToken): CSS
3435
paddingBottom: token.padding,
3536
[`${componentCls}-title`]: {
3637
fontSize: fontSizeHeading3,
38+
[iconCls]: {
39+
fontSize: token.fontSizeLG,
40+
},
3741
},
3842
[`${componentCls}-title-wrapper`]: {
3943
display: 'flex',

0 commit comments

Comments
 (0)