[KButton]: Add aria-haspopup and aria-expanded to KButton when it has a KDropdownMenu related #832
Labels
Component: KButton
Component: KDropdownMenu
help wanted
Open source contributors welcome
P2 - normal
Priority: Nice to have
size: small
TAG: a11y
🌱 Are you new to the codebase? Welcome! Please see the contributing guidelines.
Product
Kolibri, Studio, KDS, etc.
Expected behavior
KButton should have the required aria-haspopup property, and the aria-expanded state when it activates a dropdown menu.
The rendered button should have aria-haspopup="menu" if it has a menu slot defined, aria-expanded="false" if the dropdown is closed, and aria-expanded="true" if the dropdown is opened.
Actual behavior
We dont have any of these properties in kbutton right now.
The text was updated successfully, but these errors were encountered: