From dbf1d2c448217029eb7e5c16927733d5fd2c6932 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Fri, 8 Jul 2022 15:01:17 -0300 Subject: [PATCH] Comply with aria attributes for disclosure --- src/Nri/Ui/Menu/V3.elm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Nri/Ui/Menu/V3.elm b/src/Nri/Ui/Menu/V3.elm index f52133d3..c8c22b91 100644 --- a/src/Nri/Ui/Menu/V3.elm +++ b/src/Nri/Ui/Menu/V3.elm @@ -500,7 +500,12 @@ viewCustom config = [ let buttonAttributes = [ Aria.disabled config.isDisabled - , Aria.hasMenuPopUp + , case config.purpose of + NavMenu -> + Aria.hasMenuPopUp + + Disclosure _ -> + AttributesExtra.none , Aria.expanded config.isOpen , -- Whether the menu is open or closed, move to the -- first menu item if the "down" arrow is pressed