File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import type {MenuBar} from './menu-bar';
3838 '(focusin)' : '_pattern.onFocusIn()' ,
3939 '[attr.tabindex]' : '_pattern.tabIndex()' ,
4040 '[attr.data-active]' : 'active()' ,
41+ '[attr.aria-label]' : 'value()' ,
4142 '[attr.aria-haspopup]' : 'hasPopup()' ,
4243 '[attr.aria-expanded]' : 'expanded()' ,
4344 '[attr.aria-disabled]' : '_pattern.disabled()' ,
@@ -54,7 +55,7 @@ export class MenuItem<V> {
5455 /** The unique ID of the menu item. */
5556 readonly id = input ( inject ( _IdGenerator ) . getId ( 'ng-menu-item-' , true ) ) ;
5657
57- /** The value of the menu item. */
58+ /** The value of the menu item, used as the default aria-label */
5859 readonly value = input . required < V > ( ) ;
5960
6061 /** Whether the menu item is disabled. */
You can’t perform that action at this time.
0 commit comments