Skip to content

Commit 9ca3626

Browse files
Olivier YOUFdiasbruno
Olivier YOUF
authored andcommitted
[fixed] add aria-modal attribute
1 parent b2e58e7 commit 9ca3626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/ModalPortal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export default class ModalPortal extends Component {
379379
onClick: this.handleContentOnClick,
380380
role: this.props.role,
381381
"aria-label": this.props.contentLabel,
382-
...this.attributesFromObject("aria", this.props.aria || {}),
382+
...this.attributesFromObject("aria", { modal: true, ...this.props.aria }),
383383
...this.attributesFromObject("data", this.props.data || {}),
384384
"data-testid": this.props.testId
385385
};

0 commit comments

Comments
 (0)