We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80be4e6 commit f1157b1Copy full SHA for f1157b1
1 file changed
src/aria/menu/menu-item.ts
@@ -38,6 +38,7 @@ import type {MenuBar} from './menu-bar';
38
'(focusin)': '_pattern.onFocusIn()',
39
'[attr.tabindex]': '_pattern.tabIndex()',
40
'[attr.data-active]': 'active()',
41
+ '[attr.aria-label]': 'value()',
42
'[attr.aria-haspopup]': 'hasPopup()',
43
'[attr.aria-expanded]': 'expanded()',
44
'[attr.aria-disabled]': '_pattern.disabled()',
@@ -54,7 +55,7 @@ export class MenuItem<V> {
54
55
/** The unique ID of the menu item. */
56
readonly id = input(inject(_IdGenerator).getId('ng-menu-item-', true));
57
- /** The value of the menu item. */
58
+ /** The value of the menu item, used as the default aria-label */
59
readonly value = input.required<V>();
60
61
/** Whether the menu item is disabled. */
0 commit comments