Skip to content

Commit

Permalink
fix(console): snack bar design fix
Browse files Browse the repository at this point in the history
(cherry picked from commit f74cd6b)
  • Loading branch information
jansobczynski committed Mar 28, 2024
1 parent 727d48c commit 47309b4
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions gravitee-apim-console-webui/src/scss/gio-global-style.scss
Expand Up @@ -8,24 +8,30 @@

$background: map.get(gio.$mat-theme, background);

$error-background-color: mat.get-color-from-palette(gio.$mat-error-palette, default);
$error-color: mat.get-color-from-palette(gio.$mat-error-palette, default-contrast);

$success-background-color: mat.get-color-from-palette(gio.$mat-success-palette, default);
$success-color: mat.get-color-from-palette(gio.$mat-success-palette, default-contrast);

$snackbar-button: mat.get-color-from-palette(gio.$mat-basic-palette, white);

.gio-snack-bar-success {
--mdc-snackbar-container-color: #{$success-background-color};
--mdc-snackbar-supporting-text-color: #{$success-color};
--mat-snack-bar-button-color: #{$snackbar-button};
white-space: pre-wrap;
background-color: mat.get-color-from-palette(gio.$mat-success-palette, default);
color: mat.get-color-from-palette(gio.$mat-success-palette, default-contrast);

.mat-button {
color: mat.get-color-from-palette(gio.$mat-success-palette, default-contrast);
}
}

.gio-snack-bar-error {
--mdc-snackbar-container-color: #{$error-background-color};
--mdc-snackbar-supporting-text-color: #{$error-color};
--mat-snack-bar-button-color: #{$snackbar-button};
white-space: pre-wrap;
background-color: mat.get-color-from-palette(gio.$mat-error-palette, default);
color: mat.get-color-from-palette(gio.$mat-error-palette, default-contrast);
}

.mat-button {
color: mat.get-color-from-palette(gio.$mat-error-palette, default-contrast);
}
.mdc-button__label {
white-space: nowrap;
}

/**
Expand Down

0 comments on commit 47309b4

Please sign in to comment.