File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
projects/igniteui-angular/src/lib/core/styles Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 349
349
/// // }
350
350
/// // otherwise, it will return the value for key 'icon-color' in the '$avatar-theme';
351
351
/// @returns {String} - The value of the key in the passed map, or the name of key concatenated with the key name.
352
- @function --var ($map , $key ) {
352
+ @function --var ($map , $key , $fallback : ' ' ) {
353
353
$igx-legacy-support : if (global-variable-exists (' igx-legacy-support' ), $igx-legacy-support , true );
354
354
355
355
@if map-has-key ($map , $key ) {
356
356
@if $igx-legacy-support == false {
357
- @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } )' );
357
+ @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } , #{ $fallback } )' );
358
358
} @else {
359
359
@return map-get ($map , $key );
360
360
}
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.
@@ -24,6 +25,11 @@ $_light-grid-summary: extend(
24
25
$_default-shape-grid-summary ,
25
26
(
26
27
background-color : inherit ,
28
+
29
+ focus- background- color: (
30
+ igx- color: (' grays' , 100 )
31
+ ),
32
+
27
33
label- color: (
28
34
igx- color: (' primary' , 500 )
29
35
),
You can’t perform that action at this time.
0 commit comments