Skip to content

Commit 371d2c0

Browse files
authored
fix(Label): render add variant labels as buttons (#12192)
Signed-off-by: Mohamed Fall <[email protected]>
1 parent d0c9b5d commit 371d2c0

File tree

1 file changed

+1
-1
lines changed
  • packages/react-core/src/components/Label

1 file changed

+1
-1
lines changed

packages/react-core/src/components/Label/Label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export const Label: React.FunctionComponent<LabelProps> = ({
338338
);
339339
}
340340

341-
const LabelComponent = (isOverflowLabel ? 'button' : 'span') as any;
341+
const LabelComponent = (isOverflowLabel || isAddLabel ? 'button' : 'span') as any;
342342

343343
return (
344344
<LabelComponent

0 commit comments

Comments
 (0)