diff --git a/src/aria/menu/menu-item.ts b/src/aria/menu/menu-item.ts index 7fb9a83bf1ab..ee6612da7d11 100644 --- a/src/aria/menu/menu-item.ts +++ b/src/aria/menu/menu-item.ts @@ -38,6 +38,7 @@ import type {MenuBar} from './menu-bar'; '(focusin)': '_pattern.onFocusIn()', '[attr.tabindex]': '_pattern.tabIndex()', '[attr.data-active]': 'active()', + '[attr.aria-label]': 'value()', '[attr.aria-haspopup]': 'hasPopup()', '[attr.aria-expanded]': 'expanded()', '[attr.aria-disabled]': '_pattern.disabled()', @@ -54,7 +55,7 @@ export class MenuItem { /** The unique ID of the menu item. */ readonly id = input(inject(_IdGenerator).getId('ng-menu-item-', true)); - /** The value of the menu item. */ + /** The value of the menu item, used as the default aria-label */ readonly value = input.required(); /** Whether the menu item is disabled. */