mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-2582] menu menuitem roles (#1315)
* chore: wip * chore: wip mark will poke around * chore: removed unused directive * remove useless directive * cleanup code Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
[overlapTrigger]="false"
|
||||
yPosition="below"
|
||||
>
|
||||
<ng-container *ngFor="let action of createActions; trackBy: trackById">
|
||||
<div role="menu" *ngFor="let action of createActions; trackBy: trackById">
|
||||
<app-toolbar-menu-item [actionRef]="action"></app-toolbar-menu-item>
|
||||
</ng-container>
|
||||
</div>
|
||||
</mat-menu>
|
||||
|
@@ -2,6 +2,7 @@
|
||||
<ng-container *ngSwitchCase="'menu'">
|
||||
<button
|
||||
mat-menu-item
|
||||
role="menuitem"
|
||||
[disabled]="actionRef.disabled"
|
||||
[matMenuTriggerFor]="childMenu"
|
||||
>
|
||||
@@ -29,6 +30,7 @@
|
||||
<ng-container *ngSwitchDefault>
|
||||
<button
|
||||
[id]="actionRef.id"
|
||||
role="button"
|
||||
mat-menu-item
|
||||
[role]="'button'"
|
||||
color="primary"
|
||||
|
Reference in New Issue
Block a user