|
56 | 56 | /// @param {Color} $drop-indicator-color [null] - The color applied to the line between the columns when dragging a column. |
57 | 57 | /// |
58 | 58 | /// @param {Color} $grouparea-background [null] - The grid group area background color. |
| 59 | +/// @param {Color} $grouparea-color [null] - The grid group area color. |
59 | 60 | /// |
60 | 61 | /// @param {Color} $group-row-background [null] - The grid group row background color. |
61 | 62 | /// @param {Color} $group-row-selected-background [null] - The drop area background on drop color. |
|
162 | 163 | $drop-indicator-color: null, |
163 | 164 |
|
164 | 165 | $grouparea-background: null, |
| 166 | + $grouparea-color: null, |
165 | 167 |
|
166 | 168 | $group-row-background: null, |
167 | 169 | $group-row-selected-background: null, |
|
366 | 368 | $grouparea-background: $header-background |
367 | 369 | } |
368 | 370 |
|
| 371 | + @if not($grouparea-color) and $grouparea-background { |
| 372 | + $grouparea-color: rgba(text-contrast($grouparea-background), .8) |
| 373 | + } |
| 374 | + |
| 375 | + @if not($grouparea-color) and $header-background { |
| 376 | + $grouparea-color: rgba(text-contrast($header-background), .8) |
| 377 | + } |
| 378 | + |
369 | 379 | @if not($drop-area-background) and $grouparea-background { |
370 | 380 | $drop-area-background: text-contrast($grouparea-background); |
371 | 381 | } |
372 | 382 |
|
| 383 | + |
| 384 | + |
373 | 385 | @if not($drop-area-on-drop-background) and $drop-area-background { |
374 | 386 | $drop-area-on-drop-background: $drop-area-background; |
375 | 387 | } |
|
472 | 484 | drop-indicator-color: $drop-indicator-color, |
473 | 485 |
|
474 | 486 | grouparea-background: $grouparea-background, |
| 487 | + grouparea-color: $grouparea-color, |
| 488 | + |
475 | 489 | group-label-column-name-text: $group-label-column-name-text, |
476 | 490 | group-label-icon: $group-label-icon, |
477 | 491 | group-label-text: $group-label-text, |
|
1877 | 1891 | flex-wrap: wrap; |
1878 | 1892 | border-bottom: $grid-header-border; |
1879 | 1893 | background: --var($theme, 'grouparea-background'); |
| 1894 | + color: --var($theme, 'grouparea-color'); |
1880 | 1895 | min-height: map-get($grouparea-min-height, 'comfortable'); |
1881 | 1896 | padding: map-get($grouparea-padding, 'comfortable'); |
1882 | 1897 | z-index: 2; |
|
0 commit comments