mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
style: Badge align style with text under Space (#47908)
This commit is contained in:
parent
b64db3cd70
commit
a8fb31cbd5
@ -14,7 +14,7 @@ interface SpaceToken extends FullToken<'Space'> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const genSpaceStyle: GenerateStyle<SpaceToken> = (token) => {
|
const genSpaceStyle: GenerateStyle<SpaceToken> = (token) => {
|
||||||
const { componentCls } = token;
|
const { componentCls, antCls } = token;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
[componentCls]: {
|
[componentCls]: {
|
||||||
@ -43,6 +43,10 @@ const genSpaceStyle: GenerateStyle<SpaceToken> = (token) => {
|
|||||||
[`${componentCls}-item:empty`]: {
|
[`${componentCls}-item:empty`]: {
|
||||||
display: 'none',
|
display: 'none',
|
||||||
},
|
},
|
||||||
|
// https://github.com/ant-design/ant-design/issues/47875
|
||||||
|
[`${componentCls}-item > ${antCls}-badge-not-a-wrapper:only-child`]: {
|
||||||
|
display: 'block',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user