Skip to content

Commit b8b39d4

Browse files
committed
fix(sidenav): migrate mat-line and mat-list-icon to MDC directives
1 parent d414cb9 commit b8b39d4

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[matListItemIcon] {
2+
margin-right: 18px !important;
3+
margin-left: 22px !important;
4+
}

src/app/component/sidenav-buttons/sidenav-buttons.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<mat-nav-list>
22
<a mat-list-item *ngFor="let option of Options; index as i" routerLink="{{ Routing[i] }}">
3-
<mat-icon mat-list-icon color="primary">{{ Icons[i] }}</mat-icon>
4-
<h3 mat-line>{{ Options[i] }}</h3>
3+
<mat-icon matListItemIcon color="primary">{{ Icons[i] }}</mat-icon>
4+
<h3 matListItemTitle>{{ Options[i] }}</h3>
55
</a>
66
<a mat-list-item href="https://github.com/wurstbrot/DevSecOps-MaturityModel/" target="_blank">
7-
<mat-icon mat-list-icon color="primary" svgIcon="github"></mat-icon>
8-
<h3 mat-line>GitHub</h3>
7+
<mat-icon matListItemIcon color="primary" svgIcon="github"></mat-icon>
8+
<h3 matListItemTitle>GitHub</h3>
99
</a>
1010
</mat-nav-list>
1111

@@ -14,10 +14,10 @@ <h3 mat-line>GitHub</h3>
1414

1515
<mat-list>
1616
<mat-list-item (click)="toggleTheme()" style="cursor: pointer">
17-
<mat-icon mat-list-icon color="primary">
17+
<mat-icon matListItemIcon color="primary">
1818
{{ isNightMode ? 'light_mode' : 'dark_mode' }}
1919
</mat-icon>
20-
<h3 mat-line>
20+
<h3 matListItemTitle>
2121
{{ isNightMode ? 'Switch to Light Mode' : 'Switch to Dark Mode' }}
2222
</h3>
2323
</mat-list-item>

0 commit comments

Comments
 (0)