From f4c0c3e1da5288cf5b1b71d295c6c8aca1edc566 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Fri, 27 Sep 2024 14:57:55 -0400 Subject: [PATCH] fix(next modal): prevent auto aria-labelledby if aria-label is passed --- .../__snapshots__/ExpandableSection.test.tsx.snap | 3 +++ .../src/next/components/Modal/Modal.tsx | 12 +----------- .../src/next/components/Modal/ModalContent.tsx | 15 +++++---------- .../components/Modal/__tests__/Modal.test.tsx | 14 -------------- .../__snapshots__/ModalContent.test.tsx.snap | 4 ++++ 5 files changed, 13 insertions(+), 35 deletions(-) diff --git a/packages/react-core/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap b/packages/react-core/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap index d87bc00aaa6..e2ea7b32446 100644 --- a/packages/react-core/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +++ b/packages/react-core/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap @@ -58,6 +58,7 @@ exports[`Disclosure ExpandableSection 1`] = ` >