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 authored and diasbruno committed Oct 27, 2020
1 parent b2e58e7 commit 9ca3626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export default class ModalPortal extends Component {
onClick: this.handleContentOnClick,
role: this.props.role,
"aria-label": this.props.contentLabel,
...this.attributesFromObject("aria", this.props.aria || {}),
...this.attributesFromObject("aria", { modal: true, ...this.props.aria }),
...this.attributesFromObject("data", this.props.data || {}),
"data-testid": this.props.testId
};
Expand Down

0 comments on commit 9ca3626

Please sign in to comment.