[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
This commit is contained in:
Martin Muller
2019-10-24 13:58:03 +02:00
committed by Denys Vuika
parent 7b52a31001
commit da154bb58f
2 changed files with 7 additions and 3 deletions

View File

@@ -43,7 +43,10 @@
}, },
"CORE": { "CORE": {
"HEADER": { "HEADER": {
"LOGO_ARIA": "Company Logo" "LOGO_ARIA": "Company Logo",
"ACCESSIBILITY": {
"SIDEBAR_TOGGLE_BUTTON_ARIA_LABEL": "Toggle Menu"
}
}, },
"FILE_SIZE": { "FILE_SIZE": {
"BYTES": "Bytes", "BYTES": "Bytes",

View File

@@ -10,7 +10,7 @@
class="mat-icon-button adf-menu-icon" class="mat-icon-button adf-menu-icon"
mat-icon-button mat-icon-button
(click)="toggleMenu()" (click)="toggleMenu()"
aria-label="Toggle Menu"> [attr.aria-label]="'CORE.HEADER.ACCESSIBILITY.SIDEBAR_TOGGLE_BUTTON_ARIA_LABEL' | translate">
<mat-icon <mat-icon
class="mat-icon material-icon" class="mat-icon material-icon"
role="img" role="img"
@@ -43,7 +43,8 @@
class="mat-icon-button adf-menu-icon" class="mat-icon-button adf-menu-icon"
mat-icon-button mat-icon-button
(click)="toggleMenu()" (click)="toggleMenu()"
aria-label="Toggle Menu"> [attr.aria-label]="'CORE.HEADER.ACCESSIBILITY.SIDEBAR_TOGGLE_BUTTON_ARIA_LABEL' | translate">
>
<mat-icon <mat-icon
class="mat-icon material-icon" class="mat-icon material-icon"
role="img" role="img"