Skip to content

Commit

Permalink
[fixed] add aria-modal attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier YOUF committed Oct 23, 2020
1 parent b2e58e7 commit 2b55c25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ModalPortal.js
Expand Up @@ -379,6 +379,7 @@ export default class ModalPortal extends Component {
onClick: this.handleContentOnClick,
role: this.props.role,
"aria-label": this.props.contentLabel,
"aria-modal": true,
...this.attributesFromObject("aria", this.props.aria || {}),
...this.attributesFromObject("data", this.props.data || {}),
"data-testid": this.props.testId
Expand Down

0 comments on commit 2b55c25

Please sign in to comment.