[ADF-4484] Quick notifications (#4688)

* quick notifications (info, error, warning)

* update code docs
This commit is contained in:
Denys Vuika
2019-05-07 13:25:12 +01:00
committed by GitHub
parent 5d49b494fa
commit 8db915bd2a
6 changed files with 88 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
@import '../login/components/login-dialog.component';
@import '../login/components/login-dialog-panel.component';
@import '../../core/clipboard/clipboard.component';
@import './snackbar';
@mixin adf-core-theme($theme) {
@include adf-colors-theme($theme);
@@ -68,4 +69,5 @@
@include adf-login-dialog-panel-theme($theme);
@include adf-sidenav-layout-theme($theme);
@include adf-clipboard-theme($theme);
@include adf-snackbar-theme($theme);
}

View File

@@ -0,0 +1,29 @@
@mixin adf-snackbar-theme($theme) {
$warn: map-get($theme, warn);
$accent: map-get($theme, accent);
$primary: map-get($theme, primary);
.adf-error-snackbar {
background-color: mat-color($warn);
.mat-simple-snackbar-action {
color: white;
}
}
.adf-warning-snackbar {
background-color: mat-color($accent);
.mat-simple-snackbar-action {
color: white;
}
}
.adf-info-snackbar {
background-color: mat-color($primary);
.mat-simple-snackbar-action {
color: white;
}
}
}