-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathselect.common.scss
More file actions
72 lines (59 loc) · 1.7 KB
/
select.common.scss
File metadata and controls
72 lines (59 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@use 'styles/utilities' as *;
@use '../light/themes' as *;
@use '../../../input/themes/light/themes' as input-theme;
@use '../../../dropdown/themes/light/themes' as dropdown-theme;
$theme: $material;
$input-theme: input-theme.$material;
$dropdown-theme: dropdown-theme.$material;
:host {
::part(helper-text) {
color: var-get($input-theme, 'helper-text-color');
}
igc-popover::part(container) {
border-radius: var-get($dropdown-theme, 'border-radius');
}
}
[part='base'] {
background: var(--dd-background-color);
border-radius: var(--dd-border-radius);
box-shadow: var(--dd-elevation);
}
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background');
color: var-get($theme, 'toggle-button-foreground');
igc-icon {
color: inherit;
}
}
:host(:focus-within) {
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background-focus--border');
color: var-get($theme, 'toggle-button-foreground-focus');
igc-icon {
color: inherit;
}
}
}
:host([disabled]),
:host(:disabled) {
::part(helper-text) {
color: var-get($input-theme, 'disabled-text-color');
}
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background-disabled');
color: var-get($theme, 'toggle-button-foreground-disabled');
igc-icon {
color: inherit;
}
}
}
:host(:not([disabled]):state(ig-invalid)),
:host(:not(:disabled):state(ig-invalid)) {
::part(helper-text) {
color: var-get($theme, 'error-secondary-color');
}
}
::slotted([slot='suffix']),
::slotted([slot='prefix']) {
padding-inline: var(--affix-padding);
}