File tree 1 file changed +6
-7
lines changed
projects/igniteui-angular/src/lib/core/styles/components/banner
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
45
45
$theme : digest-schema ($banner-schema );
46
- $meta : map .get ($theme , ' _meta' );
47
46
48
47
@if not ($banner-message-color ) and $banner-background {
49
- $banner-message-color : text-contrast ($banner-background );
48
+ $banner-message-color : adaptive-contrast (var (--banner-background ));
49
+ }
50
+
51
+ @if not ($banner-illustration-color ) and $banner-background {
52
+ $banner-illustration-color : adaptive-contrast (var (--banner-background ));
50
53
}
51
54
52
55
@return extend ($theme , (
57
60
banner- border- color: $banner-border-color ,
58
61
banner- illustration- color: $banner-illustration-color ,
59
62
border-radius : $border-radius ,
60
- theme: map .get ($schema , ' _meta' , ' theme' ),
61
- _meta: map .merge (if ($meta , $meta , ()), (
62
- variant : map .get ($schema , ' _meta' , ' theme' )
63
- )),
64
63
));
65
64
}
66
65
69
68
/// @param {Map} $theme - The theme used to style the component.
70
69
@mixin banner ($theme ) {
71
70
@include css-vars ($theme );
72
- $variant : map .get ($theme , ' _meta' , ' variant ' );
71
+ $variant : map .get ($theme , ' _meta' , ' theme ' );
73
72
74
73
%igx-banner-host {
75
74
igx-expansion-panel-body {
You can’t perform that action at this time.
0 commit comments