Skip to content

Commit 45c08ee

Browse files
authored
fix: Don't display label and tooltip for list items (kyma-project#3806)
1 parent a1418dd commit 45c08ee

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/shared/ResourceForm/components/FormField.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,20 @@ export function FormField({
3535
direction="Column"
3636
style={style}
3737
>
38-
<FlexBox wrap="Wrap" alignItems="Center" className="bsl-col-md--12">
39-
{!isListItem && <Label required={required && !disabled}>{label}</Label>}
40-
{tooltipContent && (
41-
<HintButton
42-
setShowTitleDescription={setOpenPopover}
43-
showTitleDescription={openPopover}
44-
description={tooltipContent}
45-
className="sap-margin-begin-tiny"
46-
ariaTitle={!isListItem ? label : ''}
47-
/>
48-
)}
49-
</FlexBox>
38+
{!isListItem && label && (
39+
<FlexBox wrap="Wrap" alignItems="Center" className="bsl-col-md--12">
40+
<Label required={required && !disabled}>{label}</Label>
41+
{tooltipContent && (
42+
<HintButton
43+
setShowTitleDescription={setOpenPopover}
44+
showTitleDescription={openPopover}
45+
description={tooltipContent}
46+
className="sap-margin-begin-tiny"
47+
ariaTitle={!isListItem ? label : ''}
48+
/>
49+
)}
50+
</FlexBox>
51+
)}
5052
<FlexBox wrap="Wrap" alignItems="Center" className="full-width">
5153
{messageStrip
5254
? messageStrip

0 commit comments

Comments
 (0)