Skip to content

Commit ecfcb2d

Browse files
fix(combo): style component using sass theme (#16377)
* fix(combo): style component using sass theme * fix(combo): material border type issue --------- Co-authored-by: Simeon Simeonoff <sim.simeonoff@gmail.com>
1 parent 5ce6907 commit ecfcb2d

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

projects/igniteui-angular/src/lib/core/styles/components/combo/_combo-theme.scss

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,24 @@
210210
color: var-get($theme, 'clear-button-foreground-focus');
211211
background: var-get($theme, 'clear-button-background-focus');
212212
}
213+
214+
&%form-group-bundle--border {
215+
%igx-combo__toggle-button {
216+
background: var-get($theme, 'toggle-button-background-focus--border');
217+
}
218+
}
213219
}
214220

215221
@if $variant == 'indigo' {
216222
%form-group-bundle:not(%form-group-bundle--disabled):hover {
217223
%igx-combo__toggle-button {
218224
color: var-get($theme, 'toggle-button-foreground-focus');
225+
background: var-get($theme, 'toggle-button-background-focus');
226+
}
227+
228+
%igx-combo__clear-button {
229+
color: var-get($theme, 'clear-button-foreground-focus');
230+
background: var-get($theme, 'clear-button-background-focus');
219231
}
220232
}
221233
}
@@ -224,6 +236,14 @@
224236
%igx-combo__toggle-button {
225237
color: var-get($theme, 'toggle-button-foreground-filled');
226238
}
239+
240+
@if $variant == 'material' {
241+
&.igx-input-group--focused {
242+
%igx-combo__toggle-button {
243+
color: var-get($theme, 'toggle-button-foreground-filled');
244+
}
245+
}
246+
}
227247
}
228248

229249
.igx-input-group--focused {
@@ -254,14 +274,6 @@
254274
}
255275
}
256276

257-
//.igx-input-group:not(.igx-input-group--box) {
258-
// %igx-combo__toggle-button:focus {
259-
// @if $variant == 'material' {
260-
// background: var-get($theme, 'toggle-button-background-focus--border');
261-
// }
262-
// }
263-
//}
264-
265277
.igx-input-group--disabled {
266278
%igx-combo__toggle-button {
267279
background: var-get($theme, 'toggle-button-background-disabled') !important;
@@ -274,12 +286,4 @@
274286
}
275287
}
276288
}
277-
278-
%form-group-bundle {
279-
&:hover {
280-
%igx-combo__clear-button {
281-
color: inherit;
282-
}
283-
}
284-
}
285289
}

0 commit comments

Comments
 (0)