fix(style): keep Spin's container height the same as son element (#42162)

* fix(style): keep Spin's container height the same as the icon son element

* fix(style): update fontSize override way similar to radio group
This commit is contained in:
cheapCoder 2023-05-06 00:25:46 +08:00 committed by GitHub
parent 653d031ac4
commit af0f8904b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ const genSpinStyle: GenerateStyle<SpinToken> = (token: SpinToken): CSSObject =>
position: 'absolute',
display: 'none',
color: token.colorPrimary,
fontSize: 0,
textAlign: 'center',
verticalAlign: 'middle',
opacity: 0,
@ -65,6 +66,7 @@ const genSpinStyle: GenerateStyle<SpinToken> = (token: SpinToken): CSSObject =>
width: '100%',
paddingTop: (token.spinDotSize - token.fontSize) / 2 + 2,
textShadow: `0 1px 2px ${token.colorBgContainer}`, // FIXME: shadow
fontSize: token.fontSize,
},
[`&${token.componentCls}-show-text ${token.componentCls}-dot`]: {