Skip to content

Commit

Permalink
feat(user-profile): Theme toggle improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Sep 8, 2020
1 parent 1f6ae9a commit d445824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/user-profile/user-profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
matTooltipShowDelay="0"
>
<ng-container td-user-action-list>
<button mat-list-item (click)="themeService.toggleTheme()">
<button mat-list-item (click)="themeService.toggleTheme(); $event.stopPropagation()">
<mat-icon matListAvatar>
{{ themeService.map({ 'dark-theme': 'brightness_high', 'light-theme': 'brightness_low' }) | async }}
{{ themeService.map({ 'dark-theme': 'wb_sunny', 'light-theme': 'brightness_2' }) | async }}
</mat-icon>
<span matLine>
{{
Expand Down

0 comments on commit d445824

Please sign in to comment.