material-web icon indicating copy to clipboard operation
material-web copied to clipboard

Buttons do not support aria-expanded

Open steverep opened this issue 3 years ago • 0 comments

Describe the bug The APIs for mwc-button and mwc-icon-button have no way to set the aria-expanded attribute on the <button> element. This is needed, for example, when the button is used to open a popup menu. It should be set to true or false based on user input, and omitted when null or the empty string.

To Reproduce n/a

Expected behavior Button components should support all potential ARIA attributes as defined in the W3C spec and transfer those attributes and states to the internal <button> element.

Screenshots n/a

Browser Version (please complete the following information): n/a

Additional context ARIA 1.2 Authoring Practice for menu buttons

steverep avatar Mar 16 '22 17:03 steverep