Skip to content

Commit

Permalink
Add ARIA label to dialog close button
Browse files Browse the repository at this point in the history
12joan authored May 6, 2023
1 parent 7b4b57f commit 8430ee1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/Dialog.jsx
Original file line number Diff line number Diff line change
@@ -44,7 +44,11 @@ const Dialog = ({ id, title, open, onClose, children }) => {
const DialogCloseButton = ({ onClick }) => {
return (
<Hint>
<IconButton onClick={onClick} data-hint="Close">
<IconButton
onClick={onClick}
data-hint="Close"
aria-label="Close"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="1.5em"

0 comments on commit 8430ee1

Please sign in to comment.