mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
fix(Tabs): tabs remove icon not align centered vertically (#54794)
Co-authored-by: Khanh Tran <quangkhanhdeveloper@gmail.com>
This commit is contained in:
@@ -734,6 +734,7 @@ const genTabStyle: GenerateStyle<TabsToken, CSSObject> = (token: TabsToken) => {
|
||||
|
||||
'&-remove': {
|
||||
flex: 'none',
|
||||
lineHeight: 1,
|
||||
marginRight: {
|
||||
_skip_check_: true,
|
||||
value: token.calc(token.marginXXS).mul(-1).equal(),
|
||||
@@ -779,6 +780,7 @@ const genTabStyle: GenerateStyle<TabsToken, CSSObject> = (token: TabsToken) => {
|
||||
|
||||
[`& ${tabCls}-remove ${iconCls}`]: {
|
||||
margin: 0,
|
||||
verticalAlign: 'middle',
|
||||
},
|
||||
|
||||
[`${iconCls}:not(:last-child)`]: {
|
||||
|
||||
Reference in New Issue
Block a user