-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Bug]: Helper text div is present altho helperText is empty #21992
Copy link
Copy link
Labels
component: text-areacomponent: text-inputneeds: code contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.package: @carbon/react@carbon/react@carbon/reactrole: dev 🤖severity: 4https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitystatus: help wanted 👐type: bug 🐛
Metadata
Metadata
Assignees
Labels
component: text-areacomponent: text-inputneeds: code contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.package: @carbon/react@carbon/react@carbon/reactrole: dev 🤖severity: 4https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitystatus: help wanted 👐type: bug 🐛
Type
Fields
Give feedbackSeverity
None yet
Projects
StatusShow more project fields
✅ Done
Package
@carbon/react
Browser
No response
Package version
v1.105.0
React version
v19.2.5
Description
Some components have the helper text div altho the HelperText is empty (e.g.
""). In some cases this causes a minimal but undesired spacing attached below the component. I did not test all components but found those:Found in
TextInputandTextArea: Helper textdivwith visible spacing.Found in
CheckboxGroup: Helper textdivis present but does not add spacing. The additional spacing is probably not visible in this case due to the bottom padding of checkbox items. Altho the bottom padding on the last checkbox item is unnecessary.Reproduction/example
https://codesandbox.io/p/devbox/jk6z45
Steps to reproduce
Set the helperText property of a component to
helperText=""Inspect to see helper text
divaltho helperText is empty.Suggested Severity
Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.
Application/PAL
No response
Code of Conduct