From ab66e7f391d66e4a6dc3700f3ca291c4f1b22b73 Mon Sep 17 00:00:00 2001 From: Blake Vandercar Date: Wed, 10 Jan 2024 14:52:22 -0700 Subject: [PATCH] style: PopupKind default to "menu" --- packages/core/src/components/popover/popover.tsx | 13 ++++++------- packages/core/test/popover/popoverTests.tsx | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/core/src/components/popover/popover.tsx b/packages/core/src/components/popover/popover.tsx index c4e1f8b8ed..87f89f38b6 100644 --- a/packages/core/src/components/popover/popover.tsx +++ b/packages/core/src/components/popover/popover.tsx @@ -87,11 +87,9 @@ export interface PopoverProps; const targetModifierClasses = { diff --git a/packages/core/test/popover/popoverTests.tsx b/packages/core/test/popover/popoverTests.tsx index 7917cfcb3d..9fe6e291d4 100644 --- a/packages/core/test/popover/popoverTests.tsx +++ b/packages/core/test/popover/popoverTests.tsx @@ -201,7 +201,7 @@ describe("", () => { it("renders with aria-haspopup attr", () => { wrapper = renderPopover({ isOpen: true }); - assert.isTrue(wrapper.find("[aria-haspopup=true]").exists()); + assert.isTrue(wrapper.find("[aria-haspopup='menu']").exists()); }); it("sets aria-haspopup attr base on popupKind", () => {