mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
toolbar: override aria-haspopup
The Tooltip2 component incorrectly sets this attribute which should not be set for tooltips.
This commit is contained in:
@@ -96,6 +96,8 @@ const ActionButton: React.VoidFunctionComponent<ActionButtonProps> = ({
|
||||
aria-label={label}
|
||||
elementRef={tooltipTargetRef as IRef<HTMLButtonElement>}
|
||||
{...tooltipTargetProps}
|
||||
// https://github.com/palantir/blueprint/pull/5300
|
||||
aria-haspopup={undefined}
|
||||
intent={Intent.PRIMARY}
|
||||
onClick={onAction}
|
||||
disabled={enabled === false}
|
||||
|
||||
@@ -111,6 +111,8 @@ const OpenFileButton: React.VoidFunctionComponent<OpenFileButtonProps> = ({
|
||||
refKey: 'elementRef',
|
||||
elementRef: tooltipTargetRef as IRef<HTMLButtonElement>,
|
||||
...tooltipTargetProps,
|
||||
// https://github.com/palantir/blueprint/pull/5300
|
||||
'aria-haspopup': undefined,
|
||||
intent: Intent.PRIMARY,
|
||||
disabled: enabled === false,
|
||||
style: enabled === false ? pointerEventsNone : undefined,
|
||||
|
||||
Reference in New Issue
Block a user