File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed
projects/igniteui-angular/src/lib/core/styles Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 341
341
/// // }
342
342
/// // otherwise, it will return the value for key 'icon-color' in the '$avatar-theme';
343
343
/// @returns {String} - The value of the key in the passed map, or the name of key concatenated with the key name.
344
- @function --var ($map , $key ) {
344
+ @function --var ($map , $key , $fallback : ' ' ) {
345
345
$igx-legacy-support : if (global-variable-exists (' igx-legacy-support' ), $igx-legacy-support , true );
346
346
347
347
@if map-has-key ($map , $key ) {
348
348
@if $igx-legacy-support == false {
349
- @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } )' );
349
+ @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } , #{ $fallback } )' );
350
350
} @else {
351
351
@return map-get ($map , $key );
352
352
}
Original file line number Diff line number Diff line change 9
9
/// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
10
10
///
11
11
/// @param {Color} $background-color [null] - The summaries background color is inherited form igx-grid__tfoot
12
+ /// @param {Color} $focus-background-color [null] - The background color when a summary item is on focus.
12
13
/// @param {Color} $label-color [null] - The summaries label color.
13
14
/// @param {Color} $result-color [null] - The summaries value/result color.
14
15
/// @param {Color} $border-color [null] - The summaries border color.
35
36
$schema : $light-schema ,
36
37
37
38
$background-color : null ,
39
+ $focus-background-color : null ,
38
40
$label-color : null ,
39
41
$result-color : null ,
40
42
$border-color : null ,
62
64
name : $name ,
63
65
palette: $palette ,
64
66
background-color : $background-color ,
67
+ focus- background- color: $focus-background-color ,
65
68
label- color: $label-color ,
66
69
result- color: $result-color ,
67
70
border-color : $border-color ,
98
101
);
99
102
100
103
%igx-grid-summary {
104
+ position : relative ;
101
105
display : flex ;
102
106
flex-direction : column ;
103
107
flex : 1 1 0% ;
104
108
padding : map-get ($summary-padding , ' comfortable' );
105
- background : --var ($theme , ' background-color' );
109
+ background : --var ($theme , ' background-color' , inherit );
106
110
overflow : hidden ;
111
+ outline-style : none ;
112
+
113
+ & ::after {
114
+ position : absolute ;
115
+ content : ' ' ;
116
+ top : 0 ;
117
+ bottom : 0 ;
118
+ left : 0 ;
119
+ right : 0 ;
120
+ }
121
+
122
+ & :focus ::after {
123
+ background : --var ($theme , ' focus-background-color' );
124
+ }
107
125
}
108
126
109
127
%igx-grid-summary--cosy {
Original file line number Diff line number Diff line change 9
9
/// Generates a light grid-summary schema.
10
10
/// @type {Map}
11
11
///
12
- /// @property {Color} background-color [inherit] - The summaries background color is inherited form igx-grid__tfoot
12
+ /// @property {Color} background-color [inherit] - The summaries background color is inherited form igx-grid__tfoot.
13
+ /// @property {Color} focus-background-color [igx-color] - The background color when a summary item is on focus.
13
14
/// @property {map} label-color [igx-color: ('primary', 500)] - The summaries label color.
14
15
/// @property {Color} result-color [currentColor] - The summaries value/result color.
15
16
/// @property {map} border-color [igx-color: ('grays', 400)] - The summaries border color.
22
23
23
24
$_light-grid-summary : extend ((
24
25
background-color : inherit ,
26
+ focus- background- color: (
27
+ igx- color: (' grays' , 100 )
28
+ ),
29
+
25
30
label- color: (
26
31
igx- color: (' primary' , 500 )
27
32
),
Original file line number Diff line number Diff line change 17
17
color : $igx-foreground-color ;
18
18
19
19
@include scrollbar-love ();
20
- @include igx-theme ($default-palette , $legacy-support : false );
20
+ @include igx-theme ($default-palette );
21
21
22
22
.nav-header {
23
23
@include nav-logo (' ../assets/images/rsrcs/igniteui-logo-light-bg' , $igx-background-color );
You can’t perform that action at this time.
0 commit comments