Skip to content

Commit

Permalink
Merge pull request #233 from reaviz/syang/dialog-drawer-close-aria
Browse files Browse the repository at this point in the history
add aria-labels for close buttons on dialog and drawer
  • Loading branch information
amcdnl authored Jun 20, 2024
2 parents 91375f3 + bc72998 commit 22c44f1
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 22c44f1

Please sign in to comment.