Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/aria/menu/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()',
Expand All @@ -54,7 +55,7 @@ export class MenuItem<V> {
/** 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<V>();

/** Whether the menu item is disabled. */
Expand Down
Loading