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"
|
[overlapTrigger]="false"
|
||||||
yPosition="below"
|
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>
|
<app-toolbar-menu-item [actionRef]="action"></app-toolbar-menu-item>
|
||||||
</ng-container>
|
</div>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
<ng-container *ngSwitchCase="'menu'">
|
<ng-container *ngSwitchCase="'menu'">
|
||||||
<button
|
<button
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
|
role="menuitem"
|
||||||
[disabled]="actionRef.disabled"
|
[disabled]="actionRef.disabled"
|
||||||
[matMenuTriggerFor]="childMenu"
|
[matMenuTriggerFor]="childMenu"
|
||||||
>
|
>
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
<ng-container *ngSwitchDefault>
|
<ng-container *ngSwitchDefault>
|
||||||
<button
|
<button
|
||||||
[id]="actionRef.id"
|
[id]="actionRef.id"
|
||||||
|
role="button"
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
[role]="'button'"
|
[role]="'button'"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
Reference in New Issue
Block a user