|
52 | 52 | /// @param {Color} $drop-area-icon-color [rgba(0, 0, 0, .38)] - The drop area icon color.
|
53 | 53 | /// @param {Color} $drop-area-background [rgba(0, 0, 0, .04)] - The drop area background color.
|
54 | 54 | /// @param {Color} $drop-area-on-drop-background [rgba(0, 0, 0, .08)] - The drop area background on drop color.
|
55 |
| -/// @param {Color} $treegrid-filtered-text-color [rgba(0, 0, 0, .04)] - grouping row background color on focus. |
| 55 | +/// @param {Color} $tree-filtered-text-color [rgba(0, 0, 0, .04)] - grouping row background color on focus. |
56 | 56 | ///
|
57 | 57 | /// @requires igx-color
|
58 | 58 | /// @requires igx-contrast-color
|
|
126 | 126 | $drop-area-background: null,
|
127 | 127 | $drop-area-on-drop-background: null,
|
128 | 128 |
|
129 |
| - $treegrid-filtered-text-color: null |
| 129 | + $tree-filtered-text-color: null |
130 | 130 | ) {
|
131 | 131 | $default-theme: (
|
132 | 132 | name: 'igx-grid',
|
|
193 | 193 |
|
194 | 194 | group-row-background: hexrgba(igx-color($palette, 'grays', 100)),
|
195 | 195 | group-row-selected-background: hexrgba(igx-color($palette, 'grays', 200)),
|
196 |
| - treegrid-filtered-text-color: igx-color($palette, grays, 500) |
| 196 | + tree-filtered-text-color: igx-color($palette, grays, 500) |
197 | 197 | );
|
198 | 198 |
|
199 | 199 | @if $preset {
|
200 | 200 | $default-theme: map-get($preset, map-get($default-theme, 'name'));
|
201 | 201 | }
|
202 | 202 |
|
| 203 | + $tree-selected-filtered-row-text-color: rgba(text-contrast(map-get($default-theme, 'row-selected-background')), .5); |
| 204 | + $tree-selected-filtered-cell-text-color: rgba(text-contrast(map-get($default-theme, 'cell-selected-background')), .5); |
| 205 | + |
203 | 206 | @if not($ghost-header-icon-color) and $ghost-header-background {
|
204 | 207 | $ghost-header-icon-color: rgba(text-contrast($ghost-header-background), .07);
|
205 | 208 | }
|
|
264 | 267 | $group-row-background: $header-background
|
265 | 268 | }
|
266 | 269 |
|
267 |
| - /////// |
268 | 270 | @if not($expand-icon-color) and $group-row-background {
|
269 | 271 | $expand-icon-color: text-contrast($group-row-background)
|
270 | 272 | }
|
|
280 | 282 | @if not($group-count-background) and $group-row-selected-background {
|
281 | 283 | $group-count-background: text-contrast($group-row-selected-background);
|
282 | 284 | }
|
283 |
| - //////// |
284 |
| - |
285 | 285 |
|
286 | 286 | @if not($expand-all-icon-color) and $header-background {
|
287 | 287 | $expand-all-icon-color: rgba(text-contrast($header-background), .87);
|
|
383 | 383 | drop-area-icon-color: $drop-area-icon-color,
|
384 | 384 | drop-area-on-drop-background: $drop-area-on-drop-background,
|
385 | 385 | drop-area-background: $drop-area-background,
|
386 |
| - treegrid-filtered-text-color: $treegrid-filtered-text-color |
| 386 | + tree-filtered-text-color: $tree-filtered-text-color, |
| 387 | + tree-selected-filtered-row-text-color: $tree-selected-filtered-row-text-color, |
| 388 | + tree-selected-filtered-cell-text-color: $tree-selected-filtered-cell-text-color |
387 | 389 | ));
|
388 | 390 | }
|
389 | 391 |
|
|
414 | 416 | $transition: all 120ms $ease-in-out-cubic;
|
415 | 417 |
|
416 | 418 | // Cell
|
417 |
| - // $grid-cell-padding: 0 rem(24px); |
418 |
| - // $grid-cell-padding--e: 0 rem(24px); |
419 | 419 | $grid-cell-align-num: right;
|
420 | 420 | $grid-cell-fs: rem(13px);
|
421 | 421 | $grid-cell-lh: rem(16px);
|
|
655 | 655 | }
|
656 | 656 |
|
657 | 657 | %igx-grid__tree-grouping-indicator {
|
658 |
| - color: rgba(text-contrast(--var($theme, 'row-selected-background')), .5); |
| 658 | + color: --var($theme, 'row-selected-text-color'); |
659 | 659 |
|
660 | 660 | &:hover {
|
661 |
| - color: text-contrast(--var($theme, 'row-selected-background')); |
| 661 | + color: --var($theme, 'row-selected-text-color'); |
662 | 662 | }
|
663 | 663 | }
|
664 | 664 | }
|
|
708 | 708 |
|
709 | 709 | %igx-grid-row--filtered {
|
710 | 710 | %grid-cell-text {
|
711 |
| - color: --var($theme, 'treegrid-filtered-text-color'); |
| 711 | + color: --var($theme, 'tree-filtered-text-color'); |
| 712 | + } |
| 713 | + |
| 714 | + %igx-grid__tree-grouping-indicator { |
| 715 | + color: --var($theme, 'tree-filtered-text-color'); |
| 716 | + |
| 717 | + &:hover { |
| 718 | + color: --var($theme, 'tree-filtered-text-color'); |
| 719 | + } |
| 720 | + } |
| 721 | + |
| 722 | + %grid-cell--selected { |
| 723 | + %grid-cell-text { |
| 724 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
| 725 | + } |
| 726 | + |
| 727 | + %igx-grid__tree-grouping-indicator { |
| 728 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
| 729 | + |
| 730 | + &:hover { |
| 731 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
| 732 | + } |
| 733 | + } |
712 | 734 | }
|
713 | 735 | }
|
714 | 736 |
|
715 | 737 | %grid-row--selected--filtered {
|
716 | 738 | %grid-cell-text {
|
717 |
| - color: rgba(text-contrast(--var($theme, 'row-selected-background')), .5); |
| 739 | + color: --var($theme, 'tree-selected-filtered-row-text-color'); |
718 | 740 | }
|
719 | 741 |
|
720 | 742 | %igx-grid__tree-grouping-indicator {
|
721 |
| - color: rgba(text-contrast(--var($theme, 'row-selected-background')), .5); |
| 743 | + color: --var($theme, 'tree-selected-filtered-row-text-color'); |
722 | 744 |
|
723 | 745 | &:hover {
|
724 |
| - color: text-contrast(--var($theme, 'row-selected-background')); |
| 746 | + color: --var($theme, 'tree-selected-filtered-row-text-color'); |
725 | 747 | }
|
726 | 748 | }
|
727 | 749 |
|
728 | 750 | %grid-cell--selected {
|
| 751 | + %grid-cell-text { |
| 752 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
| 753 | + } |
| 754 | + |
729 | 755 | %igx-grid__tree-grouping-indicator {
|
730 |
| - color: rgba(text-contrast(--var($theme, 'cell-selected-background')), .5); |
| 756 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
731 | 757 |
|
732 | 758 | &:hover {
|
733 |
| - color: text-contrast(--var($theme, 'cell-selected-background')); |
| 759 | + color: --var($theme, 'tree-selected-filtered-cell-text-color'); |
734 | 760 | }
|
735 | 761 | }
|
736 | 762 | }
|
|
740 | 766 | display: flex;
|
741 | 767 | align-items: center;
|
742 | 768 | justify-content: center;
|
| 769 | + user-select: none; |
| 770 | + outline-style: none; |
743 | 771 | margin-right: rem(8);
|
744 | 772 | cursor: pointer;
|
745 | 773 |
|
|
791 | 819 | border-bottom: 0;
|
792 | 820 |
|
793 | 821 | %igx-grid__tree-grouping-indicator {
|
794 |
| - color: rgba(text-contrast(--var($theme, 'cell-selected-background')), .5); |
| 822 | + color: --var($theme, 'cell-selected-text-color'); |
795 | 823 |
|
796 | 824 | &:hover {
|
797 |
| - color: text-contrast(--var($theme, 'cell-selected-background')); |
| 825 | + color: --var($theme, 'cell-selected-text-color'); |
798 | 826 | }
|
799 | 827 | }
|
800 | 828 | }
|
|
0 commit comments