diff --git a/components/space/style/index.ts b/components/space/style/index.ts index b64c07eba4..0403c28dce 100644 --- a/components/space/style/index.ts +++ b/components/space/style/index.ts @@ -14,7 +14,7 @@ interface SpaceToken extends FullToken<'Space'> { } const genSpaceStyle: GenerateStyle = (token) => { - const { componentCls } = token; + const { componentCls, antCls } = token; return { [componentCls]: { @@ -43,6 +43,10 @@ const genSpaceStyle: GenerateStyle = (token) => { [`${componentCls}-item:empty`]: { display: 'none', }, + // https://github.com/ant-design/ant-design/issues/47875 + [`${componentCls}-item > ${antCls}-badge-not-a-wrapper:only-child`]: { + display: 'block', + }, }, }; };