[ACS-4274] Add role heading and aria level in header template (#8192)

* [ACS-4274] Add role heading and aria level in header template

* [ACS-4274] add link role

* Added header tag to title
This commit is contained in:
Raviraj Bahirsheth
2023-02-03 12:15:06 +05:30
committed by GitHub
parent 49c6cb5ad3
commit e59176d393

View File

@@ -1,8 +1,6 @@
<mat-toolbar <mat-toolbar
[color]="color" [color]="color"
[style.background-color]="color" [style.background-color]="color">
role="heading"
aria-level="1">
<button <button
*ngIf="showSidenavToggle && position === 'start'" *ngIf="showSidenavToggle && position === 'start'"
id="adf-sidebar-toggle-start" id="adf-sidebar-toggle-start"
@@ -26,7 +24,7 @@
/> />
</a> </a>
<span <h1
role="link" role="link"
[attr.aria-label]="title | translate" [attr.aria-label]="title | translate"
[routerLink]="redirectUrl" [routerLink]="redirectUrl"
@@ -34,7 +32,7 @@
fxShow fxShow
fxHide.lt-sm="true" fxHide.lt-sm="true"
class="adf-app-title" class="adf-app-title"
>{{ title }}</span> >{{ title }}</h1>
<ng-content></ng-content> <ng-content></ng-content>
<button <button