Skip to content

Commit 8d892ef

Browse files
author
MPopov
committed
fix(filtering): Adding styles to handle viewport size below 432px
1 parent f125387 commit 8d892ef

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
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-buttons !optional;
559559
}
560560

561+
@include e(filtering-row-editing-buttons) {
562+
@extend %igx-grid__filtering-row-editing-buttons !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: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@
703703
indigo-design: 600,
704704
), $variant);
705705

706+
$mobile-view: rem(432px);
707+
706708
%grid-display {
707709
position: relative;
708710
display: grid;
@@ -2374,7 +2376,9 @@
23742376
}
23752377

23762378
igx-input-group {
2377-
flex: 0 0 200px;
2379+
width: 100%;
2380+
max-width: rem(200px);
2381+
min-width: rem(100px);
23782382
}
23792383

23802384
igx-prefix:focus {
@@ -2409,6 +2413,7 @@
24092413
flex: 1;
24102414
overflow: hidden;
24112415
max-width: calc(100% - 176px);
2416+
min-width: rem(56px);
24122417

24132418
igx-chips-area {
24142419
transition: transform .25s $ease-out-back;
@@ -2640,4 +2645,29 @@
26402645

26412646
@include _excel-filtering($theme, $palette);
26422647
@include _advanced-filtering($theme, $palette);
2648+
2649+
2650+
%igx-grid__filtering-row-editing-buttons {
2651+
display: flex;
2652+
align-items: center;
2653+
2654+
[igxButton='icon'] {
2655+
display: none;
2656+
}
2657+
2658+
@media only screen and (max-width: $mobile-view) {
2659+
[igxButton] {
2660+
display: none;
2661+
}
2662+
2663+
[igxButton='icon'] {
2664+
display: flex;
2665+
2666+
&:not([disabled]) {
2667+
color: --var($theme, 'sorted-header-icon-color');
2668+
}
2669+
}
2670+
}
2671+
}
26432672
}
2673+

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,12 @@
124124
<div #buttonsContainer class="igx-grid__filtering-row-editing-buttons">
125125
<button igxButton igxRipple (click)="clearFiltering()" [disabled]="disabled" [tabindex]="disabled">{{filteringService.grid.resourceStrings.igx_grid_filter_row_reset}}</button>
126126
<button #closeButton igxButton igxRipple (click)="close()">{{filteringService.grid.resourceStrings.igx_grid_filter_row_close}}</button>
127+
128+
<!-- Visible only under 432px viewport -->
129+
<button igxButton="icon" igxRipple (click)="clearFiltering()" [disabled]="disabled" [tabindex]="disabled">
130+
<igx-icon>refresh</igx-icon>
131+
</button>
132+
<button #closeButton igxButton="icon" igxRipple (click)="close()">
133+
<igx-icon>close</igx-icon>
134+
</button>
127135
</div>

0 commit comments

Comments
 (0)