Martin Muller da154bb58f [ADF-4972] CLONE - Header - sidenav menu button aria-label not translatable (#5178)
* Make aria label fron header sidenav toggle button translateable

* Make aria label fron header sidenav toggle button translateable

* Make aria label fron header sidenav toggle button translateable
2019-10-24 12:58:03 +01:00

54 lines
1.6 KiB
HTML

<mat-toolbar
[color]="color"
[style.background-color]="color"
role="heading"
aria-level="1">
<button
*ngIf="showSidenavToggle && position === 'start'"
id="adf-sidebar-toggle-start"
data-automation-id="adf-menu-icon"
class="mat-icon-button adf-menu-icon"
mat-icon-button
(click)="toggleMenu()"
[attr.aria-label]="'CORE.HEADER.ACCESSIBILITY.SIDEBAR_TOGGLE_BUTTON_ARIA_LABEL' | translate">
<mat-icon
class="mat-icon material-icon"
role="img"
aria-hidden="true">menu</mat-icon>
</button>
<a [routerLink]="redirectUrl" title="{{ tooltip }}">
<img
src="{{ logo }}"
class="adf-app-logo"
alt="{{ 'CORE.HEADER.LOGO_ARIA' | translate }}"
/>
</a>
<span
role="link"
[attr.aria-label]="title | translate"
[routerLink]="redirectUrl"
fxFlex="1 1 auto"
fxShow
fxHide.lt-sm="true"
class="adf-app-title"
>{{ title }}</span>
<ng-content></ng-content>
<button
*ngIf="showSidenavToggle && position === 'end'"
id="adf-sidebar-toggle-end"
data-automation-id="adf-menu-icon"
class="mat-icon-button adf-menu-icon"
mat-icon-button
(click)="toggleMenu()"
[attr.aria-label]="'CORE.HEADER.ACCESSIBILITY.SIDEBAR_TOGGLE_BUTTON_ARIA_LABEL' | translate">
>
<mat-icon
class="mat-icon material-icon"
role="img"
aria-hidden="true">menu</mat-icon>
</button>
</mat-toolbar>