Skip to content

Commit

Permalink
fix: label empty str line break (#43614)
Browse files Browse the repository at this point in the history
* fix: label empty str line break

* chore: comment it
  • Loading branch information
zombieJ committed Jul 18, 2023
1 parent f438c13 commit 1c14a68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/form/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const genFormItemStyle: GenerateStyle<FormToken> = (token) => {
},

[`&${formItemCls}-no-colon::after`]: {
content: '" "',
content: '"\\a0"',
},
},
},
Expand Down Expand Up @@ -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',
},
},
});
Expand Down

0 comments on commit 1c14a68

Please sign in to comment.