Skip to content

Commit 62275cd

Browse files
SisIvanovadidimmovasimeonoffrkaraivanov
authored
fix(select): style component using sass theme (#1933)
Co-authored-by: Dilyana Yarabanova <[email protected]> Co-authored-by: Simeon Simeonoff <[email protected]> Co-authored-by: Radoslav Karaivanov <[email protected]>
1 parent c033849 commit 62275cd

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/components/select/themes/shared/select.common.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $dropdown-theme: dropdown-theme.$material;
3434

3535
:host(:focus-within) {
3636
[part~='toggle-icon'] {
37-
background: var-get($theme, 'toggle-button-background-focus--border');
37+
background: var-get($theme, 'toggle-button-background-focus');
3838
color: var-get($theme, 'toggle-button-foreground-focus');
3939

4040
igc-icon {
@@ -43,6 +43,13 @@ $dropdown-theme: dropdown-theme.$material;
4343
}
4444
}
4545

46+
:host(:not(:focus-within, [disabled])),
47+
:host(:not(:focus-within, :disabled)) {
48+
[part='toggle-icon filled'] {
49+
color: var-get($theme, 'toggle-button-foreground-filled');
50+
}
51+
}
52+
4653
:host([disabled]),
4754
:host(:disabled) {
4855
::part(helper-text) {

src/components/select/themes/shared/select.fluent.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ $input-theme: input-theme.$fluent;
3232
}
3333
}
3434

35-
:host(:focus-within) {
36-
[part~='toggle-icon'] {
37-
background: var-get($theme, 'toggle-button-background-focus');
38-
}
39-
40-
}
41-
4235
:host(:not(:state(ig-invalid)):focus-within) {
4336
igc-input[readonly]:not([disabled])::part(container) {
4437
&::before {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ $active-border-width: rem(2px) !default;
8888
}
8989
}
9090

91-
[part='toggle-icon filled'] {
92-
color: var-get($theme, 'toggle-button-foreground-filled');
93-
}
94-
9591
:host([disabled]),
9692
:host(:disabled) {
9793
igc-input::part(input)::selection {

0 commit comments

Comments
 (0)