|
90 | 90 | /// @param {Color} $excel-filtering-actions-foreground [null] - The text color of the excel style filtering options.
|
91 | 91 | /// @param {Color} $excel-filtering-actions-hover-foreground [null] - The text color of the excel style filtering options in hover/focus state.
|
92 | 92 | /// @param {Color} $excel-filtering-actions-disabled-foreground [null] - The text color of the excel style filtering options in disabled state.
|
93 |
| -/// @param {Color} $tree-filtered-text-color [null] - grouping row background color on focus. |
94 |
| -/// @param {Color} $body-summaries-background [null] - The background color of the summary groups located the body. |
95 |
| -/// @param {Color} $body-summaries-text-color [null] - The text color of the summary results located the body. |
96 |
| -/// @param {Color} $root-summaries-background [null] - The background color of the summary groups located the footer. |
97 |
| -/// @param {Color} $root-summaries-text-color [null] - The text color of the summary results located the footer. |
| 93 | +/// @param {Color} $tree-filtered-text-color [null] - Grouping row background color on focus. |
| 94 | +/// @param {Color} $summaries-patch-background [null] - The leading summaries patch backround. Used in hierarchical grids. |
98 | 95 | /// @param {Color} $row-highlight [null] - The grid row highlight indication color.
|
99 | 96 | /// @param {box-shadow} $grid-shadow [null] - The shadow of the grid.
|
100 | 97 | /// @param {box-shadow} $drag-shadow [null] - The shadow used for movable elements (ex. column headers).
|
|
204 | 201 | $excel-filtering-actions-hover-foreground: null,
|
205 | 202 | $excel-filtering-actions-disabled-foreground: null,
|
206 | 203 |
|
207 |
| - $body-summaries-background: null, |
208 |
| - $body-summaries-text-color: null, |
209 |
| - $root-summaries-background: null, |
210 |
| - $root-summaries-text-color: null, |
211 |
| -
|
212 | 204 | $row-highlight: null,
|
213 | 205 | $grid-shadow: null,
|
214 | 206 | $drag-shadow: null,
|
|
217 | 209 | $drop-area-border-radius: null,
|
218 | 210 | $grid-border-color: null,
|
219 | 211 | $sortable-header-icon-hover-color: null,
|
| 212 | + $summaries-patch-background: null, |
220 | 213 |
|
221 | 214 | $cell-selected-within-background: null,
|
222 | 215 | $cell-selected-within-text-color: null,
|
|
434 | 427 | $filtering-row-text-color: text-contrast(to-opaque($filtering-row-background));
|
435 | 428 | }
|
436 | 429 |
|
437 |
| - @if not($body-summaries-text-color) and $body-summaries-background { |
438 |
| - $body-summaries-text-color: text-contrast($body-summaries-background); |
439 |
| - } |
440 |
| - |
441 |
| - @if not($root-summaries-text-color) and $root-summaries-background { |
442 |
| - $root-summaries-text-color: text-contrast($root-summaries-background); |
443 |
| - } |
444 |
| - |
445 | 430 | @if not($grid-shadow) {
|
446 | 431 | $grid-elevation: map.get($grid-schema, 'grid-elevation');
|
447 | 432 | $grid-shadow: elevation($grid-elevation);
|
|
556 | 541 | tree-selected-filtered-row-text-color: $tree-selected-filtered-row-text-color,
|
557 | 542 | tree-selected-filtered-cell-text-color: $tree-selected-filtered-cell-text-color,
|
558 | 543 |
|
559 |
| - body-summaries-background: $body-summaries-background, |
560 |
| - body-summaries-text-color: $body-summaries-text-color, |
561 |
| - root-summaries-background: $root-summaries-background, |
562 |
| - root-summaries-text-color: $root-summaries-text-color, |
563 |
| - |
564 | 544 | row-highlight: $row-highlight,
|
565 | 545 | grid-shadow: $grid-shadow,
|
566 | 546 | drag-shadow: $drag-shadow,
|
|
569 | 549 | drop-area-border-radius: $drop-area-border-radius,
|
570 | 550 | sortable-header-icon-hover-color: $sortable-header-icon-hover-color,
|
571 | 551 | grid-border-color: $grid-border-color,
|
| 552 | + summaries-patch-background: $summaries-patch-background, |
572 | 553 |
|
573 | 554 | cell-selected-within-background: $cell-selected-within-background,
|
574 | 555 | cell-selected-within-text-color: $cell-selected-within-text-color,
|
|
2286 | 2267 | %grid-summaries {
|
2287 | 2268 | display: flex;
|
2288 | 2269 | overflow: hidden;
|
2289 |
| - background: var-get($theme, 'root-summaries-background'); |
2290 | 2270 | outline-style: none;
|
2291 |
| - |
2292 |
| - %igx-grid-summary__result { |
2293 |
| - color: var-get($theme, 'root-summaries-text-color'); |
2294 |
| - } |
2295 |
| - |
| 2271 | + background-color: var-get($theme, 'summaries-patch-background'); |
2296 | 2272 | }
|
2297 | 2273 |
|
2298 | 2274 | %grid-summaries--body {
|
2299 |
| - background: var-get($theme, 'body-summaries-background'); |
| 2275 | + --summaries-patch-background: var(--ig-gray-100); |
| 2276 | + |
2300 | 2277 | border-bottom: rem(1px) dashed var-get($theme, 'row-border-color');
|
| 2278 | + background-color: var-get($theme, 'summaries-patch-background'); |
2301 | 2279 |
|
2302 | 2280 | &:last-of-type {
|
2303 | 2281 | border-bottom: none;
|
2304 | 2282 | }
|
2305 | 2283 |
|
2306 |
| - %igx-grid-summary__result { |
2307 |
| - color: var-get($theme, 'body-summaries-text-color'); |
| 2284 | + .igx-grid-summary { |
| 2285 | + --background-color: inherit; |
| 2286 | + --result-color: #{adaptive-contrast(var(--background-color))}; |
2308 | 2287 | }
|
2309 | 2288 | }
|
2310 | 2289 |
|
2311 | 2290 | %grid-summaries-patch {
|
2312 |
| - @if $bootstrap-theme { |
2313 |
| - background: color($color: 'gray', $variant: 100); |
2314 |
| - } @else { |
2315 |
| - background: inherit; |
2316 |
| - } |
2317 | 2291 | position: relative;
|
2318 |
| - z-index: 1; |
| 2292 | + background: inherit; |
2319 | 2293 | border-inline-end: rem(1px) solid var-get($theme, 'header-border-color');
|
| 2294 | + z-index: 1; |
2320 | 2295 |
|
2321 | 2296 | @if $variant == 'indigo' {
|
2322 | 2297 | border-top: rem(1px) solid var-get($theme, 'header-border-color');
|
|
3199 | 3174 | } @else {
|
3200 | 3175 | background: color($color: 'surface', $variant: 500);
|
3201 | 3176 | }
|
3202 |
| - |
| 3177 | + |
3203 | 3178 | box-shadow: elevation(if($variant == 'indigo', if($theme-variant == 'light', 24, 23), 24));
|
3204 | 3179 |
|
3205 | 3180 | @if $variant == 'material' or $variant == 'bootstrap' {
|
|
0 commit comments