From 9ca362695157001f201123d10c5584d25bc8a6f4 Mon Sep 17 00:00:00 2001 From: Olivier YOUF Date: Fri, 23 Oct 2020 18:02:29 +0200 Subject: [PATCH] [fixed] add aria-modal attribute --- src/components/ModalPortal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index 268fbd78..ca05eb8d 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -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 };