Skip to content

Commit 2853eaf

Browse files
committed
MSFT 248 - Add aria-label to close modal dialog button.
1 parent 84443fe commit 2853eaf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

__tests__/shared/components/__snapshots__/Modal.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports[`Snapshot match 1`] = `
1111
CONTENT
1212
</div>
1313
<button
14+
aria-label="Close Dialog"
1415
className="style__overlay___X12tn"
1516
onClick={[Function]}
1617
type="button"

src/shared/components/Modal/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class BaseModal extends React.Component {
5454
onClick={() => onCancel()}
5555
className={theme.overlay}
5656
type="button"
57+
aria-label="Close Dialog"
5758
/>
5859
</React.Fragment>
5960
),

0 commit comments

Comments
 (0)