Skip to content

Commit 4d493da

Browse files
author
MPopov
committed
fix(Advanced Filtering): (bootstrap) Fix filtered state colors of the adv filtering in the toolbar button in the toolbar
1 parent fbad297 commit 4d493da

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
@mixin igx-grid-toolbar($theme) {
106106
@include igx-root-css-vars($theme);
107107

108+
$variant: map-get($theme, variant);
109+
$bootstrap-theme: $variant == 'bootstrap';
110+
108111
$left: if-ltr(left, right);
109112
$right: if-ltr(right, left);
110113

@@ -252,6 +255,11 @@
252255

253256
%igx-grid-toolbar__adv-filter--filtered {
254257
border-color: igx-color(map-get($theme, 'palette'), 'secondary') !important;
258+
259+
@if $bootstrap-theme {
260+
border-color: igx-color(map-get($theme, 'palette'), 'primary', 800) !important;
261+
border-width: 2px;
262+
}
255263
}
256264

257265
%igx-grid-toolbar__dropdown {

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_grid-toolbar.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
/// @see $default-palette
2323

2424
$_light-grid-toolbar: (
25+
variant: 'material',
26+
2527
background-color: (
2628
igx-color: ('grays', 50)
2729
),
@@ -63,6 +65,8 @@ $_light-grid-toolbar: (
6365
$_fluent-grid-toolbar: extend(
6466
$_light-grid-toolbar,
6567
(
68+
variant: 'fluent',
69+
6670
background-color: (
6771
igx-color: 'surface'
6872
),
@@ -73,5 +77,10 @@ $_fluent-grid-toolbar: extend(
7377
/// @type {Map}
7478
/// @requires {function} extend
7579
/// @requires {map} $_light-grid-toolbar
76-
$_bootstrap-grid-toolbar: extend($_light-grid-toolbar);
80+
$_bootstrap-grid-toolbar: extend(
81+
$_light-grid-toolbar,
82+
(
83+
variant: 'bootstrap'
84+
)
85+
);
7786

0 commit comments

Comments
 (0)