toolbar/ActionButton: use aria-disabled

Since buttons are only styled as disabled, we need to use aria-disabled
to tell screen readers that the button is disabled.
This commit is contained in:
David Lechner
2022-12-16 17:54:36 -06:00
committed by David Lechner
parent dc27d45f20
commit 9e62259845
+1
View File
@@ -107,6 +107,7 @@ const ActionButton: React.VoidFunctionComponent<ActionButtonProps> = ({
}) => (
<Button
id={id}
aria-disabled={enabled === false}
aria-label={label}
elementRef={tooltipTargetRef as React.Ref<HTMLButtonElement>}
{...mergeProps(tooltipTargetProps, {