We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700dc45 commit 46f2ea3Copy full SHA for 46f2ea3
packages/react-core/src/components/Label/Label.tsx
@@ -272,6 +272,8 @@ export const Label: React.FunctionComponent<LabelProps> = ({
272
className: css(styles.labelContent),
273
...(isTooltipVisible && { tabIndex: 0 }),
274
...(href && { href }),
275
+ // Need to prevent onClick since aria-disabled won't prevent AT from triggering the link
276
+ ...(href && isDisabled && { onClick: (event: MouseEvent) => event.preventDefault() }),
277
...(isButton && clickableLabelProps),
278
...(isEditable && {
279
ref: editableButtonRef,
0 commit comments