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:
parent
48b12d03f6
commit
9e399aa199
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export class MenuButtonController extends ApplicationController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private open(focusMenuItem: 'first' | 'last' = 'first') {
|
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.parentElement?.classList.add('open');
|
||||||
this.menuTarget.focus();
|
this.menuTarget.focus();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue