Skip to content

Commit

Permalink
Merge pull request ReactiveX#37 from knittingcodemonkey/a11y_initiative
Browse files Browse the repository at this point in the history
fix (Component): add accessibility features
  • Loading branch information
ladyleet authored Oct 16, 2017
2 parents 8830979 + 6b7459d commit 6e83bb6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<div class="app-fullpage">
<mat-toolbar color="accent" class="mat-elevation-z6">
<button mat-icon-button (click)="sidenav.toggle()">
<mat-icon>
menu
</mat-icon>
</button>
<span class="title"> RxJS Docs </span>
</mat-toolbar>
<header>
<mat-toolbar color="accent" class="mat-elevation-z6">
<button mat-icon-button (click)="sidenav.toggle()" aria-label="menu">
<mat-icon>
menu
</mat-icon>
</button>
<span class="title"> RxJS Docs </span>
</mat-toolbar>
</header>
<mat-sidenav-container>
<mat-sidenav #sidenav>
<mat-sidenav #sidenav role="navigation">
<mat-nav-list (click)="sidenav.toggle()">
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active"
[routerLinkActiveOptions]="menu.options"
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active"
[routerLinkActiveOptions]="menu.options"
[routerLink]="menu.link">
{{menu.title}}
{{menu.title}}
</a>
</mat-nav-list>
</mat-sidenav>
<div class="body-margin">
<main class="body-margin">
<router-outlet></router-outlet>
</div>
</main>
</mat-sidenav-container>
</div>
1 change: 1 addition & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.title {
padding: 0 16px;
font-weight: 600;
}

0 comments on commit 6e83bb6

Please sign in to comment.