mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
toolbar: hide icons from a11y tools
There are already ARIA labels, so the icons should be hidden.
This commit is contained in:
@@ -109,10 +109,10 @@ const ActionButton: React.VoidFunctionComponent<ActionButtonProps> = ({
|
||||
/>
|
||||
) : (
|
||||
<img
|
||||
aria-hidden={true}
|
||||
width={`${buttonSize}px`}
|
||||
height={`${buttonSize}px`}
|
||||
src={icon}
|
||||
alt={label}
|
||||
/>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
@@ -126,10 +126,10 @@ const OpenFileButton: React.VoidFunctionComponent<OpenFileButtonProps> = ({
|
||||
/>
|
||||
) : (
|
||||
<img
|
||||
aria-hidden={true}
|
||||
width={`${buttonSize}px`}
|
||||
height={`${buttonSize}px`}
|
||||
src={icon}
|
||||
alt={label}
|
||||
/>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user