fix(aria-expanded): aria-expanded can be either true or false, not empty: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded

This commit is contained in:
Martin 2022-10-06 16:06:10 +02:00 committed by mfo
parent 48b12d03f6
commit 9e399aa199

View file

@ -68,7 +68,7 @@ export class MenuButtonController extends ApplicationController {
}
private open(focusMenuItem: 'first' | 'last' = 'first') {
this.buttonTarget.setAttribute('aria-expanded', '');
this.buttonTarget.setAttribute('aria-expanded', 'true');
this.menuTarget.parentElement?.classList.add('open');
this.menuTarget.focus();