mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-23 16:32:11 +03:00
Comply with aria attributes for disclosure
This commit is contained in:
parent
1722204874
commit
dbf1d2c448
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user