Skip to content

Commit 9f18555

Browse files
authored
Set Material snack bar background color using mixin (#3600)
1 parent efe4d38 commit 9f18555

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/SIL.XForge.Scripture/ClientApp/src/styles.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use 'sass:map';
22
@use 'variables';
3+
@use '@angular/material' as mat;
34

45
// This creates css variables for common breakpoints (needed when using MediaBreakpointService with BreakpointObserver)
56
@use 'src/xforge-common/media-breakpoints/css-vars';
@@ -63,8 +64,12 @@ as-split.is-disabled > .as-split-gutter .as-split-gutter-icon {
6364
padding-top: 5px !important;
6465
}
6566

66-
.mdc-snackbar.snackbar-error > div {
67-
background-color: #{variables.$errorColor};
67+
.snackbar-error {
68+
@include mat.snack-bar-overrides(
69+
(
70+
container-color: variables.$errorColor
71+
)
72+
);
6873
}
6974

7075
.mdc-button.mat-mdc-unelevated-button,

0 commit comments

Comments
 (0)