showing results for - "toggle buttons angular styles"
Stéphane
28 Oct 2016
1@import '~@angular/material/theming';
2
3@include mat-core();
4
5$app-primary: mat-palette($mat-indigo);
6$app-accent:  mat-palette($mat-pink, A200, A100, A400);
7
8$app-theme: mat-light-theme($app-primary, $app-accent);
9
10@mixin mix-app-theme($app-theme) {
11  $primary: map-get($app-theme, primary);
12  $accent: map-get($app-theme, accent);
13
14  .mat-button-toggle {
15    background-color: mat-color($primary);
16    color: mat-color($primary, default-contrast);
17  }
18
19  .mat-button-toggle-checked {
20    background-color: mat-color($accent);
21    color: mat-color($accent, default-contrast);
22  }
23}
24
25// Include the mixin
26@include mix-app-theme($app-theme);
27