|
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. |
|
160 | 161 | $drop-indicator-color: null, |
161 | 162 |
|
162 | 163 | $grouparea-background: null, |
| 164 | + $grouparea-color: null, |
163 | 165 |
|
164 | 166 | $group-row-background: null, |
165 | 167 | $group-row-selected-background: null, |
|
364 | 366 | $grouparea-background: $header-background |
365 | 367 | } |
366 | 368 |
|
| 369 | + @if not($grouparea-color) and $grouparea-background { |
| 370 | + $grouparea-color: rgba(text-contrast($grouparea-background), .8) |
| 371 | + } |
| 372 | + |
| 373 | + @if not($grouparea-color) and $header-background { |
| 374 | + $grouparea-color: rgba(text-contrast($header-background), .8) |
| 375 | + } |
| 376 | + |
367 | 377 | @if not($drop-area-background) and $grouparea-background { |
368 | 378 | $drop-area-background: text-contrast($grouparea-background); |
369 | 379 | } |
370 | 380 |
|
| 381 | + |
| 382 | + |
371 | 383 | @if not($drop-area-on-drop-background) and $drop-area-background { |
372 | 384 | $drop-area-on-drop-background: $drop-area-background; |
373 | 385 | } |
|
470 | 482 | drop-indicator-color: $drop-indicator-color, |
471 | 483 |
|
472 | 484 | grouparea-background: $grouparea-background, |
| 485 | + grouparea-color: $grouparea-color, |
| 486 | + |
473 | 487 | group-label-column-name-text: $group-label-column-name-text, |
474 | 488 | group-label-icon: $group-label-icon, |
475 | 489 | group-label-text: $group-label-text, |
|
1875 | 1889 | flex-wrap: wrap; |
1876 | 1890 | border-bottom: $grid-header-border; |
1877 | 1891 | background: --var($theme, 'grouparea-background'); |
| 1892 | + color: --var($theme, 'grouparea-color'); |
1878 | 1893 | min-height: map-get($grouparea-min-height, 'comfortable'); |
1879 | 1894 | padding: map-get($grouparea-padding, 'comfortable'); |
1880 | 1895 | z-index: 2; |
|
0 commit comments