aria-hide icons in navbar
This commit is contained in:
parent
4170a63dbf
commit
114b197c89
|
@ -20,7 +20,7 @@
|
|||
<ul class="horizontal-list justify-content-end" id="navigation">
|
||||
<li class="navbar-item-sm ml-auto">
|
||||
<button mat-icon-button [matMenuTriggerFor]="toggleMenu" [attr.aria-label]="'ALT-TEXT.USER-OPTIONS' | translate">
|
||||
<mat-icon>more_horiz</mat-icon>
|
||||
<mat-icon aria-hidden>more_horiz</mat-icon>
|
||||
</button>
|
||||
</li>
|
||||
|
||||
|
@ -33,16 +33,16 @@
|
|||
[matTooltip]="toggleFontSizeTooltip"
|
||||
[attr.aria-label]="toggleFontSizeTooltip"
|
||||
>
|
||||
<mat-icon>format_size</mat-icon>
|
||||
<mat-icon aria-hidden>format_size</mat-icon>
|
||||
</button>
|
||||
</li>
|
||||
<li class="navbar-item-lg" *ngIf="!(isAuthenticated() && onInvalidUrl())">
|
||||
<button mat-button class="faq-title" (click)="openFaqDialog()">{{ 'FAQ.TITLE' | translate }}</button>
|
||||
</li>
|
||||
<li class="navbar-item-lg" *ngIf="!(isAuthenticated() && onInvalidUrl())">
|
||||
<button mat-button [matMenuTriggerFor]="languageMenu" class="lang">
|
||||
<button mat-button [matMenuTriggerFor]="languageMenu" class="lang" [attr.aria-label]="'ALT-TEXT.LANGUAGE-SELECT' | translate">
|
||||
<mat-icon aria-hidden>language</mat-icon><span class="text-uppercase" style="font-weight: 500;">{{selectedLanguage}}</span>
|
||||
<mat-icon iconPositionEnd alt="{{'ALT-TEXT.LANGUAGE-SELECT' | translate}}">arrow_drop_down</mat-icon>
|
||||
<mat-icon iconPositionEnd aria-hidden>arrow_drop_down</mat-icon>
|
||||
</button>
|
||||
<mat-menu #languageMenu="matMenu" class="nav-mat-menu">
|
||||
<app-language (languageChange)="getLanguage($event)" class="d-lg-block d-none"></app-language>
|
||||
|
@ -50,8 +50,8 @@
|
|||
</li>
|
||||
<li class="navbar-item-lg" *ngIf="isAuthenticated()">
|
||||
<button mat-button [matMenuTriggerFor]="tenantMenu" class="p-0 lang" [attr.aria-label]="'ALT-TEXT.TENANT-SELECT' | translate">
|
||||
<mat-icon class="m-0 material-symbols-outlined">tenancy</mat-icon>
|
||||
<mat-icon class="m-0">arrow_drop_down</mat-icon>
|
||||
<mat-icon aria-hidden class="m-0 material-symbols-outlined">tenancy</mat-icon>
|
||||
<mat-icon aria-hidden class="m-0">arrow_drop_down</mat-icon>
|
||||
</button>
|
||||
<mat-menu #tenantMenu="matMenu" class="nav-mat-menu">
|
||||
<app-tenant-switch class="d-lg-block d-none"></app-tenant-switch>
|
||||
|
@ -88,16 +88,16 @@
|
|||
<li class="ml-3 d-flex justify-content-around align-items-center" (click)="$event.stopPropagation()" tabindex="0">
|
||||
<button mat-button class="faq-title" (click)="openFaqDialog()" [attr.aria-label]="'FAQ.TITLE' | translate">{{ 'FAQ.TITLE' | translate }}</button>
|
||||
<button mat-button [matMenuTriggerFor]="languageMenu" class="lang" [attr.aria-label]="'ALT-TEXT.LANGUAGE-SELECT' | translate" (click)="$event.stopPropagation();">
|
||||
<mat-icon>language</mat-icon><span class="text-uppercase" style="font-weight: 500;">{{selectedLanguage}}</span>
|
||||
<mat-icon iconPositionEnd>arrow_drop_down</mat-icon>
|
||||
<mat-icon aria-hidden>language</mat-icon><span class="text-uppercase" style="font-weight: 500;">{{selectedLanguage}}</span>
|
||||
<mat-icon aria-hidden iconPositionEnd>arrow_drop_down</mat-icon>
|
||||
</button>
|
||||
<mat-menu #languageMenu="matMenu" class="nav-mat-menu">
|
||||
<app-language (languageChange)="getLanguage($event)"></app-language>
|
||||
</mat-menu>
|
||||
<ng-container *ngIf="isAuthenticated()">
|
||||
<button mat-button [matMenuTriggerFor]="tenantMenu" class="p-0" [attr.aria-label]="'ALT-TEXT.TENANT-SELECT' | translate">
|
||||
<mat-icon class="m-0 material-symbols-outlined">tenancy</mat-icon>
|
||||
<mat-icon class="m-0">arrow_drop_down</mat-icon>
|
||||
<mat-icon aria-hidden class="m-0 material-symbols-outlined">tenancy</mat-icon>
|
||||
<mat-icon aria-hidden class="m-0">arrow_drop_down</mat-icon>
|
||||
</button>
|
||||
<mat-menu #tenantMenu="matMenu" class="nav-mat-menu">
|
||||
<app-tenant-switch></app-tenant-switch>
|
||||
|
|
Loading…
Reference in New Issue