Skip to content

Commit faac494

Browse files
crisbetojosephperrott
authored andcommitted
chore: add landmark elements to dev app (angular#14436)
Fixes the dev app not having landmark elements. This removes some of the noise when doing accessibility checks with aXe.
1 parent 9e03e3e commit faac494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dev-app/dev-app.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<mat-sidenav-container class="demo-container">
2-
<mat-sidenav #start>
2+
<mat-sidenav #start role="navigation">
33
<mat-nav-list>
44
<a *ngFor="let navItem of navItems"
55
mat-list-item
@@ -22,7 +22,7 @@
2222
</mat-nav-list>
2323
<button mat-button tabindex="-1" (click)="start.close()">CLOSE</button>
2424
</mat-sidenav>
25-
<div>
25+
<main>
2626
<mat-toolbar color="primary">
2727
<button mat-icon-button (click)="start.open('mouse')">
2828
<mat-icon>menu</mat-icon>
@@ -45,5 +45,5 @@ <h1>Angular Material Demos</h1>
4545
<div #root="dir" dir="ltr" class="demo-content">
4646
<router-outlet></router-outlet>
4747
</div>
48-
</div>
48+
</main>
4949
</mat-sidenav-container>

0 commit comments

Comments
 (0)