From 13a19dc0d2019093222fa41f65225dbaca18e157 Mon Sep 17 00:00:00 2001 From: Arturo Castillo Delgado Date: Thu, 12 Dec 2024 15:51:48 +0100 Subject: [PATCH 1/3] [EuiModal] Adjust position of close button --- packages/eui/src/components/modal/modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eui/src/components/modal/modal.tsx b/packages/eui/src/components/modal/modal.tsx index 36fbdbc5c52..438d92ef4ec 100644 --- a/packages/eui/src/components/modal/modal.tsx +++ b/packages/eui/src/components/modal/modal.tsx @@ -104,6 +104,7 @@ export const EuiModal: FunctionComponent = ({ aria-modal={true} {...rest} > + {children} = ({ /> )} - {children} From 60cf5d3cfcd0423f9c9ff1fc201bb12bb1902ac6 Mon Sep 17 00:00:00 2001 From: Arturo Castillo Delgado Date: Thu, 12 Dec 2024 15:55:52 +0100 Subject: [PATCH 2/3] [EuiModal] Update snapshots --- .../__snapshots__/confirm_modal.test.tsx.snap | 48 +++++++++---------- .../modal/__snapshots__/modal.test.tsx.snap | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) 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
Date: Thu, 12 Dec 2024 16:04:13 +0100 Subject: [PATCH 3/3] Changelog --- packages/eui/changelogs/upcoming/8230.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 packages/eui/changelogs/upcoming/8230.md 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.