Skip to content

Commit 844218f

Browse files
refactor(toast): consume border-color from schema (#13508)
--------- Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent e892953 commit 844218f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

projects/igniteui-angular/src/lib/core/styles/components/toast/_toast-theme.scss

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
///
1717
/// @param {Color} $background [null] - The background color used for the toast.
1818
/// @param {Color} $text-color [null] - The text-color used for the toast.
19+
/// @param {Color} $border-color [null] - The border-color used for the toast.
1920
///
2021
/// @param {List} $border-radius [null] - The border radius used for the toast component.
2122
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the toast.
@@ -30,6 +31,7 @@
3031
$schema: $light-material-schema,
3132
3233
$border-radius: null,
34+
$border-color: null,
3335
$background: null,
3436
$text-color: null,
3537
$shadow: null,
@@ -60,6 +62,7 @@
6062
background: $background,
6163
border-radius: $border-radius,
6264
text-color: $text-color,
65+
border-color: $border-color,
6366
shadow: $shadow,
6467
_meta: map.merge(if($meta, $meta, ()), (
6568
variant: map.get($schema, '_meta', 'theme')
@@ -83,13 +86,6 @@
8386
'indigo-design': rem(14px) rem(24px)
8487
), $variant);
8588

86-
$border: map.get((
87-
'material': none,
88-
'fluent': none,
89-
'bootstrap': rem(1px) solid color(null, 'gray', 300),
90-
'indigo-design': none
91-
), $variant);
92-
9389
%igx-toast-display {
9490
display: inline-flex;
9591
justify-content: center;
@@ -99,7 +95,7 @@
9995
min-width: $width;
10096
color: var-get($theme, 'text-color');
10197
background: var-get($theme, 'background');
102-
border: $border;
98+
border: rem(1px) solid var-get($theme, 'border-color');
10399
border-radius: var-get($theme, 'border-radius');
104100
box-shadow: map.get($theme, 'shadow');
105101
backdrop-filter: blur(10px);

0 commit comments

Comments
 (0)