diff --git a/components/form/style/index.ts b/components/form/style/index.ts index 757154595a..a78320f37c 100644 --- a/components/form/style/index.ts +++ b/components/form/style/index.ts @@ -222,7 +222,7 @@ const genFormItemStyle: GenerateStyle = (token) => { }, [`&${formItemCls}-no-colon::after`]: { - content: '" "', + content: '"\\a0"', }, }, }, @@ -397,7 +397,8 @@ const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({ margin: 0, '&::after': { - display: 'none', + // https://github.com/ant-design/ant-design/issues/43538 + visibility: 'hidden', }, }, });