mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
[ACA-2506] Header - Button does not have a role (#1229)
* Add aria label to avatar button * Add tabindex 0 to make it tab focusable * changed to button as div doesn't allow using tab for opening the menu
This commit is contained in:
committed by
Cilibiu Bogdan
parent
1c1a365ac9
commit
322cd27111
@@ -1,8 +1,12 @@
|
||||
<div title="{{ (profile$ | async)?.id }}">
|
||||
<div class="current-user__full-name">{{ (profile$ | async)?.userName }}</div>
|
||||
<div class="current-user__avatar am-avatar" [matMenuTriggerFor]="userMenu">
|
||||
<button
|
||||
mat-icon-button
|
||||
class="current-user__avatar am-avatar"
|
||||
[matMenuTriggerFor]="userMenu"
|
||||
>
|
||||
{{ (profile$ | async)?.initials }}
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<mat-menu #userMenu="matMenu" [overlapTrigger]="false">
|
||||
|
Reference in New Issue
Block a user