-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathselect-button.module.css
More file actions
64 lines (54 loc) · 2.26 KB
/
Copy pathselect-button.module.css
File metadata and controls
64 lines (54 loc) · 2.26 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
:root {
--ax-public-select-border-size: var(--wb-size-12);
--ax-public-select-button-color: var(--wb-ui-text-default);
--ax-public-select-button-border-color: var(--wb-components-text-field-stroke-default);
--ax-public-select-button-border-color-focus: var(--wb-components-text-field-stroke-focus);
--ax-public-select-button-focus-ring-color: var(--wb-shadow-ui-focus);
--ax-public-select-button-color-disabled: var(--wb-components-text-field-stroke-default);
--ax-public-select-button-background-color-error: var(--wb-components-text-field-bg-primary-critical);
--ax-public-select-button-border-color-error: var(--wb-components-text-field-stroke-critical);
--ax-public-select-button-color-error: var(--wb-ui-text-critical-default);
}
@layer ui.component {
.container {
display: flex;
width: 100%;
min-width: 100px;
align-items: center;
/* Push the caret to the far edge: Base UI's Select.Value wraps the value in
an inline span, so the inner container's width:100% resolves against that
span and cannot stretch - without this, the caret hugs the text. */
justify-content: space-between;
background-color: transparent;
cursor: pointer;
color: var(--ax-public-select-button-color);
border: var(--ax-public-select-border-size) solid var(--ax-public-select-button-border-color);
&:not(:hover) {
transition: all var(--ax-public-transition);
}
&[data-popup-open] {
border-color: var(--ax-public-select-button-border-color-focus);
}
&.container--error {
background-color: var(--ax-public-select-button-background-color-error);
border-color: var(--ax-public-select-button-border-color-error);
color: var(--ax-public-select-button-color-error);
}
&:focus-visible {
border-color: var(--ax-public-select-button-border-color-focus);
outline: none;
box-shadow: var(--wb-shadow-ui-focus-element-x) var(--wb-shadow-ui-focus-element-y)
var(--wb-shadow-ui-focus-element-blur) var(--wb-shadow-ui-focus-element-spread)
var(--ax-public-select-button-focus-ring-color);
}
&:disabled {
color: var(--ax-public-select-button-color-disabled);
cursor: auto;
}
svg {
width: 1rem;
height: 1rem;
min-width: 1rem;
}
}
}