Skip to content

Commit

Permalink
feat(info): add aria label to info button
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed Nov 5, 2024
1 parent 42047eb commit c0a1bf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/organisms/shared/Oakinfo/OakInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export const OakInfo = (props: OakInfoProps) => {
<OakInfoButton
onClick={handleClick}
isOpen={isOpen}
buttonProps={{ "aria-describedby": id }}
buttonProps={{
"aria-describedby": id,
"aria-label": isOpen ? "close info tooltip" : "open info tooltip",
}}
/>
</OakTooltip>
</>
Expand Down

0 comments on commit c0a1bf1

Please sign in to comment.