diff --git a/packages/eui/changelogs/upcoming/8230.md b/packages/eui/changelogs/upcoming/8230.md new file mode 100644 index 00000000000..aa9bd8c0460 --- /dev/null +++ b/packages/eui/changelogs/upcoming/8230.md @@ -0,0 +1,3 @@ +**Accessibility** + +- In `EuiModal` the close button is now placed last in the DOM, for correctness in reading order. diff --git a/packages/eui/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap b/packages/eui/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap index 8817c20828f..43c481df263 100644 --- a/packages/eui/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap +++ b/packages/eui/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap @@ -18,18 +18,6 @@ exports[`EuiConfirmModal renders EuiConfirmModal 1`] = ` role="alertdialog" tabindex="0" > -
@@ -90,6 +78,18 @@ exports[`EuiConfirmModal renders EuiConfirmModal 1`] = `
+ ,
-
@@ -174,6 +162,18 @@ exports[`EuiConfirmModal renders EuiConfirmModal without EuiModalBody, if empty
+
,
+ children - children
= ({ aria-modal={true} {...rest} > + {children} = ({ /> )} - {children}