Skip to content

Commit 6b85f7d

Browse files
authored
feat(snackbar): improve snackbar theme (#15683)
1 parent 8d62677 commit 6b85f7d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

projects/igniteui-angular/src/lib/core/styles/components/snackbar/_snackbar-theme.scss

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@
4242
}
4343

4444
$theme: digest-schema($snackbar-schema);
45-
$meta: map.get($theme, '_meta');
4645

4746
@if not($button-color) and $background {
48-
$button-color: text-contrast($background);
47+
$button-color: adaptive-contrast(var(--background));
4948
}
5049

5150
@if not($text-color) and $background {
52-
$text-color: text-contrast($background);
51+
$text-color: adaptive-contrast(var(--background));
5352
}
5453

5554
@if not($shadow) {
@@ -64,10 +63,6 @@
6463
text-color: $text-color,
6564
button-color: $button-color,
6665
shadow: $shadow,
67-
theme: map.get($schema, '_meta', 'theme'),
68-
_meta: map.merge(if($meta, $meta, ()), (
69-
variant: map.get($schema, '_meta', 'theme')
70-
)),
7166
));
7267
}
7368

@@ -78,7 +73,7 @@
7873
@include css-vars($theme);
7974
@include fade-in();
8075

81-
$variant: map.get($theme, '_meta', 'variant');
76+
$variant: map.get($theme, '_meta', 'theme');
8277

8378
$snackbar-min-height: rem(48px);
8479
$snackbar-padding: rem(7px) rem(24px);

0 commit comments

Comments
 (0)