mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
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:
committed by
David Lechner
parent
dc27d45f20
commit
9e62259845
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user