Skip to content

Commit

Permalink
Merge pull request #322 from oaknational/fix/PUPIL-820/add-aria-label…
Browse files Browse the repository at this point in the history
…-info

Fix/pupil 820/add aria label info
  • Loading branch information
benprotheroe authored Nov 6, 2024
2 parents 5a47c38 + ae8742c commit f31470f
Show file tree
Hide file tree
Showing 2 changed files with 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ exports[`OakInfo matches snapshot 1`] = `
>
<button
aria-describedby="info-tooltip"
aria-label="open info tooltip"
className="c4 c5"
data-rac={true}
onClick={[Function]}
Expand Down

0 comments on commit f31470f

Please sign in to comment.