Skip to content

Commit cab21ed

Browse files
author
MPopov
committed
feat(filterin): fix icon margin and color
1 parent 257a354 commit cab21ed

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@
558558
@extend %igx-grid__filtering-row-editing-buttons !optional;
559559
}
560560

561+
@include e(filtering-row-editing-buttons, $m: small) {
562+
@extend %igx-grid__filtering-row-editing-buttons--small !optional;
563+
}
564+
561565
@include e(filtering-row-main) {
562566
@extend %igx-grid__filtering-row-main !optional;
563567
}

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,16 +2646,29 @@
26462646
@include _excel-filtering($theme, $palette);
26472647
@include _advanced-filtering($theme, $palette);
26482648

2649-
2649+
%igx-grid__filtering-row-editing-buttons--small,
26502650
%igx-grid__filtering-row-editing-buttons {
26512651
display: flex;
26522652
align-items: center;
2653+
}
2654+
2655+
%igx-grid__filtering-row-editing-buttons {
2656+
button {
2657+
igx-icon {
2658+
margin-#{$right}: 8px;
2659+
}
2660+
}
2661+
}
26532662

2654-
[igxButton='icon'] {
2663+
%igx-grid__filtering-row-editing-buttons--small {
2664+
button {
26552665
&:not([disabled]) {
2656-
color: --var($theme, 'sorted-header-icon-color');
2666+
igx-icon {
2667+
color: --var($theme, 'sorted-header-icon-color');
2668+
}
26572669
}
26582670
}
26592671
}
26602672
}
26612673

2674+

projects/igniteui-angular/src/lib/grids/filtering/base/grid-filtering-row.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<igx-icon>navigate_next</igx-icon>
122122
</button>
123123

124-
<div #buttonsContainer class="igx-grid__filtering-row-editing-buttons">
124+
<div #buttonsContainer [ngClass]="isNarrowWidth ? 'igx-grid__filtering-row-editing-buttons--small' : 'igx-grid__filtering-row-editing-buttons'">
125125
<button [igxButton]="isNarrowWidth ? 'icon' : 'flat'" igxRipple (click)="clearFiltering()" [disabled]="disabled" [tabindex]="disabled">
126126
<igx-icon>refresh</igx-icon>
127127
{{isNarrowWidth ? '' : filteringService.grid.resourceStrings.igx_grid_filter_row_reset}}

0 commit comments

Comments
 (0)