Skip to content

Commit d605567

Browse files
committed
fix(combo): toggle button focus styles
1 parent f662ce2 commit d605567

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/components/combo/themes/shared/combo.material.scss

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,26 @@ $dropdown-theme: dropdown-theme.$material;
7575
color: var-get($theme, 'toggle-button-foreground-filled');
7676
}
7777

78-
:host(:focus-within) {
78+
:host(:not([outlined]):focus-within) {
79+
igc-input::part(container) {
80+
--_toggle-focus-background: #{var-get($theme, 'toggle-button-background')};
81+
--_toggle-focus-foreground: #{var-get($theme, 'toggle-button-foreground')};
82+
}
83+
84+
igc-input::part(container) {
85+
&:focus-within {
86+
--_toggle-focus-background: #{var-get($theme, 'toggle-button-background-focus')};
87+
--_toggle-focus-foreground: #{var-get($theme, 'toggle-button-foreground-filled')};
88+
}
89+
}
90+
7991
[part~='toggle-icon'] {
80-
color: var-get($theme, 'toggle-button-foreground-filled');
81-
background: var-get($theme, 'toggle-button-background-focus');
92+
color: var(--_toggle-focus-foreground);
93+
background: var(--_toggle-focus-background);
8294
}
83-
}
8495

85-
:host(:not([outlined]):focus-within) {
86-
> igc-input::part(container) {
87-
background: var-get($input-theme, 'box-background-focus');
96+
[part='toggle-icon filled'] {
97+
color: var-get($theme, 'toggle-button-foreground-filled');
8898
}
8999
}
90100

0 commit comments

Comments
 (0)