Skip to content

Commit

Permalink
feat(modal): add 'aria-modal="true"' to modal
Browse files Browse the repository at this point in the history
For better screenreader accessibility
  • Loading branch information
adinajohnson committed Jun 7, 2023
1 parent b7d571c commit 2a43591
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ class Modal extends React.Component {
onKeyDown: this.handleTab,
style: { display: 'block' },
'aria-labelledby': labelledBy,
'aria-modal': true,
role,
tabIndex: '-1',
};
Expand Down

0 comments on commit 2a43591

Please sign in to comment.