Skip to content

Commit

Permalink
add aria-labels for close buttons on dialog and drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
steppy452 committed Jun 20, 2024
1 parent 91375f3 commit bc72998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layers/Dialog/DialogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const DialogHeader: FC<DialogHeaderProps> = ({
type="button"
className={theme.header.closeButton}
onClick={onClose}
aria-label="Close"
>
</button>
Expand Down
1 change: 1 addition & 0 deletions src/layers/Drawer/DrawerHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const DrawerHeader: FC<DrawerHeaderProps> = ({
type="button"
className={theme.closeButton.base}
onClick={onClose}
aria-label="Close"
>
</button>
Expand Down

0 comments on commit bc72998

Please sign in to comment.