@agorapulse/ui-theme 22.0.2-beta.1 → 22.0.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agorapulse-ui-theme-22.0.5-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +624 -460
- package/assets/mobile_variables.css +624 -460
- package/assets/style/_button-mixins.scss +33 -92
- package/assets/style/_input.scss +4 -0
- package/assets/style/_link.scss +31 -35
- package/assets/style/_select.scss +67 -44
- package/assets/style/_table.scss +52 -20
- package/assets/style/_tooltip.scss +6 -7
- package/assets/style/components-custom-style/_input.scss +22 -28
- package/assets/style/components-custom-style/_ng-select.scss +15 -7
- package/assets/style/css-ui/_action-dropdown.scss +39 -27
- package/assets/style/css-ui/_badge.scss +2 -5
- package/assets/style/css-ui/_button.scss +141 -96
- package/assets/style/css-ui/_checkbox.scss +6 -11
- package/assets/style/css-ui/_counter.scss +7 -15
- package/assets/style/css-ui/_icon-button.scss +24 -68
- package/assets/style/css-ui/_infobox.scss +25 -68
- package/assets/style/css-ui/_input.scss +31 -38
- package/assets/style/css-ui/_label.scss +10 -8
- package/assets/style/css-ui/_link.scss +31 -36
- package/assets/style/css-ui/_list-panel.scss +33 -15
- package/assets/style/css-ui/_radio-card.scss +37 -31
- package/assets/style/css-ui/_radio.scss +17 -27
- package/assets/style/css-ui/_select.scss +53 -50
- package/assets/style/css-ui/_selection-dropdown.scss +25 -35
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +4 -14
- package/assets/style/css-ui/_status.scss +26 -29
- package/assets/style/css-ui/_table.scss +52 -20
- package/assets/style/css-ui/_tabs.scss +15 -31
- package/assets/style/css-ui/_tag.scss +25 -65
- package/assets/style/css-ui/_textarea.scss +25 -30
- package/assets/style/css-ui/_toggle.scss +12 -11
- package/assets/style/css-ui/_tooltip.scss +10 -7
- package/assets/style/css-ui/index.css +525 -638
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +1 -3
- package/src/desktop_config.js +1 -2
- package/src/mobile_config.js +1 -2
- package/src/tokens/components/button.json +225 -11
- package/src/tokens/components/icon-button.json +11 -1
- package/src/tokens/components/input.json +64 -145
- package/src/tokens/components/link.json +132 -0
- package/src/tokens/components/select.json +14 -14
- package/src/tokens/components/status.json +129 -0
- package/src/tokens/reference/v3.json +242 -0
- package/src/tokens/system/color-border.json +50 -43
- package/src/tokens/system/color-data.json +58 -0
- package/src/tokens/system/color-icon.json +62 -45
- package/src/tokens/system/color-link.json +15 -9
- package/src/tokens/system/color-surface.json +87 -77
- package/src/tokens/system/color-text.json +63 -52
- package/src/tokens/system/height.json +12 -3
- package/src/tokens/system/motion.json +10 -0
- package/src/tokens/system/radius.json +18 -2
- package/src/tokens/system/spacing.json +13 -13
- package/agorapulse-ui-theme-22.0.2-beta.1.tgz +0 -0
- package/src/formats.js +0 -36
- package/src/tokens/components/action-dropdown.json +0 -93
- package/src/tokens/components/close-button.json +0 -22
- package/src/tokens/components/infobox.json +0 -156
- package/src/tokens/components/radio.json +0 -11
|
@@ -1,74 +1,69 @@
|
|
|
1
1
|
// Agorapulse Link Styles
|
|
2
|
-
//
|
|
3
|
-
// Colours come from the semantic `color/link/*` family (V2 Style Guide - Tokens,
|
|
4
|
-
// node 1193:11239). The five typographic rows of that frame map onto the variants
|
|
5
|
-
// here: Subtitle -> `big`, Body -> base, Caption -> `small`, Body Bold ->
|
|
6
|
-
// `standalone`, Caption Bold -> `standalone.small`.
|
|
7
2
|
@use 'mixins' as m;
|
|
8
3
|
|
|
9
4
|
// Base link styling
|
|
10
5
|
.ap-link {
|
|
11
6
|
display: inline-flex;
|
|
12
|
-
gap: var(--
|
|
13
|
-
font-family: var(--
|
|
14
|
-
font-weight: var(--
|
|
15
|
-
line-height: var(--
|
|
16
|
-
font-size: var(--
|
|
7
|
+
gap: var(--comp-link-spacing);
|
|
8
|
+
font-family: var(--comp-link-text-font-family);
|
|
9
|
+
font-weight: var(--comp-link-text-font-weight);
|
|
10
|
+
line-height: var(--comp-link-text-line-height);
|
|
11
|
+
font-size: var(--comp-link-text-size);
|
|
17
12
|
align-items: center;
|
|
18
13
|
text-decoration: underline;
|
|
19
14
|
-webkit-tap-highlight-color: transparent;
|
|
20
15
|
cursor: pointer;
|
|
21
|
-
color: var(--
|
|
16
|
+
color: var(--comp-link-default-color);
|
|
22
17
|
|
|
23
18
|
// Size variants
|
|
24
19
|
&.small {
|
|
25
|
-
font-family: var(--
|
|
26
|
-
font-weight: var(--
|
|
27
|
-
line-height: var(--
|
|
28
|
-
font-size: var(--
|
|
20
|
+
font-family: var(--comp-link-small-text-style-font-family);
|
|
21
|
+
font-weight: var(--comp-link-small-text-style-font-weight);
|
|
22
|
+
line-height: var(--comp-link-small-text-style-line-height);
|
|
23
|
+
font-size: var(--comp-link-small-text-style-size);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
&.big {
|
|
32
|
-
font-family: var(--
|
|
33
|
-
font-weight: var(--
|
|
34
|
-
line-height: var(--
|
|
35
|
-
font-size: var(--
|
|
27
|
+
font-family: var(--comp-link-big-text-style-font-family);
|
|
28
|
+
font-weight: var(--comp-link-big-text-style-font-weight);
|
|
29
|
+
line-height: var(--comp-link-big-text-style-line-height);
|
|
30
|
+
font-size: var(--comp-link-big-text-style-size);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
// Standalone variant (no underline)
|
|
39
34
|
&.standalone {
|
|
40
35
|
text-decoration: none;
|
|
41
|
-
font-family: var(--
|
|
42
|
-
font-weight: var(--
|
|
43
|
-
line-height: var(--
|
|
44
|
-
font-size: var(--
|
|
45
|
-
color: var(--
|
|
36
|
+
font-family: var(--comp-link-standalone-default-text-style-font-family);
|
|
37
|
+
font-weight: var(--comp-link-standalone-default-text-style-font-weight);
|
|
38
|
+
line-height: var(--comp-link-standalone-default-text-style-line-height);
|
|
39
|
+
font-size: var(--comp-link-standalone-default-text-style-size);
|
|
40
|
+
color: var(--comp-link-default-color);
|
|
46
41
|
|
|
47
42
|
&.small {
|
|
48
|
-
font-family: var(--
|
|
49
|
-
font-weight: var(--
|
|
50
|
-
line-height: var(--
|
|
51
|
-
font-size: var(--
|
|
43
|
+
font-family: var(--comp-link-standalone-small-text-style-font-family);
|
|
44
|
+
font-weight: var(--comp-link-standalone-small-text-style-font-weight);
|
|
45
|
+
line-height: var(--comp-link-standalone-small-text-style-line-height);
|
|
46
|
+
font-size: var(--comp-link-standalone-small-text-style-size);
|
|
52
47
|
}
|
|
53
48
|
}
|
|
54
49
|
|
|
55
50
|
// States
|
|
56
51
|
&:hover {
|
|
57
|
-
color: var(--
|
|
52
|
+
color: var(--comp-link-hover-color);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
&:active:not(:visited):not(.disabled) {
|
|
61
|
-
color: var(--
|
|
56
|
+
color: var(--comp-link-clicked-color);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
&:visited:not(.standalone) {
|
|
65
|
-
color: var(--
|
|
60
|
+
color: var(--comp-link-visited-color);
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
// Disabled state
|
|
69
64
|
&.disabled,
|
|
70
65
|
&[aria-disabled='true'] {
|
|
71
|
-
color: var(--
|
|
66
|
+
color: var(--comp-link-disabled-color);
|
|
72
67
|
pointer-events: none;
|
|
73
68
|
cursor: default;
|
|
74
69
|
}
|
|
@@ -82,10 +77,10 @@
|
|
|
82
77
|
|
|
83
78
|
// Icon sizing — implicit > i
|
|
84
79
|
> i {
|
|
85
|
-
min-width: var(--
|
|
86
|
-
min-height: var(--
|
|
87
|
-
max-width: var(--
|
|
88
|
-
max-height: var(--
|
|
80
|
+
min-width: var(--comp-link-icon-size);
|
|
81
|
+
min-height: var(--comp-link-icon-size);
|
|
82
|
+
max-width: var(--comp-link-icon-size);
|
|
83
|
+
max-height: var(--comp-link-icon-size);
|
|
89
84
|
flex-shrink: 0;
|
|
90
85
|
}
|
|
91
86
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
// Rows follow the dropdown spec's interactive ramp: neutral on hover, blue only when selected.
|
|
1
2
|
.ap-list-panel {
|
|
2
|
-
background-color: var(--
|
|
3
|
-
border-right: 1px solid var(--
|
|
3
|
+
background-color: var(--sys-color-surface-default);
|
|
4
|
+
border-right: 1px solid var(--sys-color-border-default);
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: column;
|
|
6
7
|
height: 100%;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.ap-list-panel-header {
|
|
10
|
-
border-bottom: 1px solid var(--
|
|
11
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
11
12
|
display: flex;
|
|
12
13
|
flex-direction: column;
|
|
13
14
|
gap: var(--ref-spacing-sm);
|
|
@@ -27,23 +28,40 @@
|
|
|
27
28
|
align-items: center;
|
|
28
29
|
min-height: 40px;
|
|
29
30
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
30
|
-
gap: var(--
|
|
31
|
-
font-size: var(--
|
|
32
|
-
line-height: var(--
|
|
33
|
-
color: var(--
|
|
31
|
+
gap: var(--sys-spacing-inline-icon-default);
|
|
32
|
+
font-size: var(--sys-text-style-body-size);
|
|
33
|
+
line-height: var(--sys-text-style-body-line-height);
|
|
34
|
+
color: var(--sys-color-text-interactive-default);
|
|
34
35
|
cursor: pointer;
|
|
35
36
|
transition: background-color var(--ref-animation-short);
|
|
36
37
|
|
|
37
38
|
&:hover {
|
|
38
|
-
background-color: var(--
|
|
39
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:active {
|
|
43
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
&.selected {
|
|
42
|
-
background-color: var(--
|
|
47
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
43
48
|
|
|
44
49
|
.ap-list-panel-item-name {
|
|
45
|
-
color: var(--
|
|
46
|
-
font-weight: var(--
|
|
50
|
+
color: var(--sys-color-text-interactive-active);
|
|
51
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// The spec takes the caption blue with the title, not the title alone.
|
|
55
|
+
.ap-list-panel-item-subtitle {
|
|
56
|
+
color: var(--sys-color-text-interactive-active);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:active {
|
|
64
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
47
65
|
}
|
|
48
66
|
}
|
|
49
67
|
}
|
|
@@ -62,12 +80,12 @@
|
|
|
62
80
|
white-space: nowrap;
|
|
63
81
|
|
|
64
82
|
&:has(+ .ap-list-panel-item-subtitle) {
|
|
65
|
-
font-weight: var(--
|
|
83
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
66
84
|
}
|
|
67
85
|
}
|
|
68
86
|
|
|
69
87
|
.ap-list-panel-item-subtitle {
|
|
70
|
-
font-size: var(--
|
|
71
|
-
line-height: var(--
|
|
72
|
-
color: var(--
|
|
88
|
+
font-size: var(--sys-text-style-caption-size);
|
|
89
|
+
line-height: var(--sys-text-style-caption-line-height);
|
|
90
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
73
91
|
}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
content: '';
|
|
20
20
|
@include m.fixed-size(16px);
|
|
21
21
|
border-radius: 100%;
|
|
22
|
-
border: 1px solid var(--
|
|
23
|
-
background: var(--
|
|
24
|
-
box-shadow: inset 0 0 0 16px var(--
|
|
25
|
-
transition: box-shadow var(--
|
|
22
|
+
border: 1px solid var(--sys-color-border-input-default);
|
|
23
|
+
background: var(--sys-color-surface-input-active);
|
|
24
|
+
box-shadow: inset 0 0 0 16px var(--sys-color-surface-interactive-default);
|
|
25
|
+
transition: box-shadow var(--sys-radio-transition-duration);
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
margin-top: 1px;
|
|
@@ -30,43 +30,42 @@
|
|
|
30
30
|
|
|
31
31
|
// Indicator: checked
|
|
32
32
|
&:has(input:checked)::before {
|
|
33
|
-
border-color: var(--
|
|
34
|
-
box-shadow: inset 0 0 0 3px var(--
|
|
33
|
+
border-color: var(--sys-color-border-input-active);
|
|
34
|
+
box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Indicator: disabled
|
|
38
38
|
&:has(input:disabled)::before {
|
|
39
|
-
box-shadow: inset 0 0 0 16px var(--
|
|
40
|
-
border-color: var(--
|
|
41
|
-
opacity: 0.6;
|
|
39
|
+
box-shadow: inset 0 0 0 16px var(--sys-color-surface-input-disabled);
|
|
40
|
+
border-color: var(--sys-color-border-input-disabled);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
// Indicator: disabled + checked
|
|
45
44
|
&:has(input:disabled:checked)::before {
|
|
46
|
-
background: var(--
|
|
47
|
-
box-shadow: inset 0 0 0 3px var(--
|
|
48
|
-
border-color: var(--
|
|
45
|
+
background: var(--sys-color-surface-input-active-disabled);
|
|
46
|
+
box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
|
|
47
|
+
border-color: var(--sys-color-border-input-active-disabled);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
// Indicator: hover (not disabled, not locked)
|
|
52
51
|
&:hover:not(:has(input:disabled)):not(.locked)::before {
|
|
53
|
-
border-color: var(--
|
|
52
|
+
border-color: var(--sys-color-border-input-hovered);
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
// Indicator: hover + checked
|
|
57
56
|
&:hover:not(:has(input:disabled)):not(.locked):has(input:checked)::before {
|
|
58
|
-
border-color: var(--
|
|
57
|
+
border-color: var(--sys-color-border-input-active);
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
// Indicator: error — red fill (dot) + border, compound selectors override checked/hover
|
|
62
61
|
&.error::before,
|
|
63
62
|
&.error:has(input:checked)::before {
|
|
64
|
-
border-color: var(--
|
|
65
|
-
background: var(--
|
|
63
|
+
border-color: var(--sys-color-border-error);
|
|
64
|
+
background: var(--sys-color-icon-error);
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
&.error:hover:not(:has(input:disabled))::before {
|
|
69
|
-
border-color: var(--
|
|
68
|
+
border-color: var(--sys-color-border-error);
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
// Locked — hide indicator, lock icon takes its place
|
|
@@ -77,9 +76,18 @@
|
|
|
77
76
|
// Disabled state — cursor + content opacity (matches Angular --radio-content-opacity: 0.6)
|
|
78
77
|
&:has(input:disabled) {
|
|
79
78
|
cursor: default;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// The spec colours disabled text and icons explicitly rather than fading them, and it
|
|
82
|
+
// keeps a locked card's text at full strength.
|
|
83
|
+
&:has(input:disabled):not(.locked) {
|
|
84
|
+
.ap-radio-card-title,
|
|
85
|
+
> div > span {
|
|
86
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
87
|
+
}
|
|
80
88
|
|
|
81
|
-
> :
|
|
82
|
-
|
|
89
|
+
.ap-radio-card-header > i:first-child {
|
|
90
|
+
color: var(--sys-color-icon-interactive-disabled);
|
|
83
91
|
}
|
|
84
92
|
}
|
|
85
93
|
|
|
@@ -117,8 +125,11 @@
|
|
|
117
125
|
border-color: var(--sys-color-border-interactive-hovered);
|
|
118
126
|
}
|
|
119
127
|
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
&:active:not(:has(input:disabled)):not(.locked) {
|
|
129
|
+
border-color: var(--sys-color-border-interactive-clicked);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Checked card
|
|
122
133
|
&:has(input:checked) {
|
|
123
134
|
border-color: var(--sys-color-border-interactive-active);
|
|
124
135
|
}
|
|
@@ -128,19 +139,13 @@
|
|
|
128
139
|
border-color: var(--sys-color-border-interactive-disabled);
|
|
129
140
|
}
|
|
130
141
|
|
|
131
|
-
|
|
132
|
-
&:has(input:disabled):has(input:checked):not(.locked) {
|
|
142
|
+
&:has(input:disabled:checked):not(.locked) {
|
|
133
143
|
border-color: var(--sys-color-border-interactive-active-disabled);
|
|
134
144
|
}
|
|
135
145
|
|
|
136
|
-
// Error card — compound selectors override :has(input:checked) specificity
|
|
137
|
-
// One red for every interaction state: the frame has no error-hovered token and
|
|
138
|
-
// renders default, hovered and pressed identically.
|
|
146
|
+
// Error card — compound selectors override :has(input:checked) specificity
|
|
139
147
|
&.error,
|
|
140
|
-
&.error:has(input:checked)
|
|
141
|
-
border-color: var(--sys-color-border-error);
|
|
142
|
-
}
|
|
143
|
-
|
|
148
|
+
&.error:has(input:checked),
|
|
144
149
|
&.error:hover:not(:has(input:disabled)) {
|
|
145
150
|
border-color: var(--sys-color-border-error);
|
|
146
151
|
}
|
|
@@ -179,6 +184,7 @@
|
|
|
179
184
|
|
|
180
185
|
> i:first-child {
|
|
181
186
|
@include m.fixed-size(16px);
|
|
187
|
+
color: var(--sys-color-icon-interactive-default);
|
|
182
188
|
flex-shrink: 0;
|
|
183
189
|
margin-top: 1px; // center 16px icon with 18px title line-height
|
|
184
190
|
}
|
|
@@ -203,6 +209,6 @@
|
|
|
203
209
|
cursor: pointer;
|
|
204
210
|
|
|
205
211
|
&:hover {
|
|
206
|
-
color: var(--sys-color-
|
|
212
|
+
color: var(--sys-color-icon-default);
|
|
207
213
|
}
|
|
208
214
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Agorapulse Radio Styles
|
|
2
2
|
@use 'mixins' as m;
|
|
3
3
|
|
|
4
|
+
// The dot is the indicator's own background; the inset box-shadow masks it. A 16px inset covers
|
|
5
|
+
// it entirely (unselected), 3px leaves the 10px dot showing (selected).
|
|
4
6
|
.ap-radio-container {
|
|
5
7
|
display: flex;
|
|
6
8
|
align-items: center;
|
|
@@ -23,10 +25,9 @@
|
|
|
23
25
|
@include m.fixed-size(16px);
|
|
24
26
|
border-radius: 100%;
|
|
25
27
|
border: 1px solid var(--sys-color-border-input-default);
|
|
26
|
-
// `background` is the dot; the inset shadow covers it until checked.
|
|
27
28
|
background: var(--sys-color-surface-input-active);
|
|
28
|
-
box-shadow: inset 0 0 0 16px var(--sys-color-surface-
|
|
29
|
-
transition: box-shadow var(--
|
|
29
|
+
box-shadow: inset 0 0 0 16px var(--sys-color-surface-interactive-default);
|
|
30
|
+
transition: box-shadow var(--sys-radio-transition-duration);
|
|
30
31
|
flex-shrink: 0;
|
|
31
32
|
box-sizing: border-box;
|
|
32
33
|
}
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
// Indicator: checked
|
|
35
36
|
&:has(input:checked)::before {
|
|
36
37
|
border-color: var(--sys-color-border-input-active);
|
|
37
|
-
box-shadow: inset 0 0 0 3px var(--sys-color-surface-
|
|
38
|
+
box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
// Indicator: disabled
|
|
@@ -43,28 +44,19 @@
|
|
|
43
44
|
border-color: var(--sys-color-border-input-disabled);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
// Indicator: disabled + checked
|
|
47
|
+
// Indicator: disabled + checked — the spec keeps a white surface and pales ring and dot
|
|
47
48
|
&:has(input:disabled:checked)::before {
|
|
48
49
|
background: var(--sys-color-surface-input-active-disabled);
|
|
49
50
|
box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
|
|
50
51
|
border-color: var(--sys-color-border-input-active-disabled);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
//
|
|
54
|
-
// the `active-disabled` blue here, and binds the dot to a raw grey-40 ref — there is
|
|
55
|
-
// no token for it (node 1194:10479).
|
|
56
|
-
&.error:has(input:disabled:checked)::before {
|
|
57
|
-
background: var(--ref-color-grey-40);
|
|
58
|
-
box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-disabled);
|
|
59
|
-
border-color: var(--sys-color-border-input-disabled);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Indicator: hover (not disabled)
|
|
54
|
+
// Indicator: hover (not disabled). The spec draws no separate pressed state.
|
|
63
55
|
&:hover:not(:has(input:disabled))::before {
|
|
64
56
|
border-color: var(--sys-color-border-input-hovered);
|
|
65
57
|
}
|
|
66
58
|
|
|
67
|
-
// Indicator: hover + checked (keep
|
|
59
|
+
// Indicator: hover + checked (keep the active ring)
|
|
68
60
|
&:hover:not(:has(input:disabled)):has(input:checked)::before {
|
|
69
61
|
border-color: var(--sys-color-border-input-active);
|
|
70
62
|
}
|
|
@@ -81,23 +73,21 @@
|
|
|
81
73
|
border-color: var(--sys-color-border-input-active);
|
|
82
74
|
}
|
|
83
75
|
|
|
84
|
-
// Error state — compound selectors to override :has(input:checked) specificity
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
&.error:not(:has(input:disabled))::before,
|
|
89
|
-
&.error:
|
|
76
|
+
// Error state — compound selectors to override :has(input:checked) specificity.
|
|
77
|
+
// The error ring holds the same red through hover and focus, and the dot turns red too.
|
|
78
|
+
&.error::before,
|
|
79
|
+
&.error:has(input:checked)::before,
|
|
80
|
+
&.error:hover:not(:has(input:disabled))::before,
|
|
81
|
+
&.error:has(input:focus-visible)::before {
|
|
90
82
|
border-color: var(--sys-color-border-error);
|
|
91
|
-
background: var(--sys-color-icon-error);
|
|
92
83
|
}
|
|
93
84
|
|
|
94
|
-
&.error:
|
|
95
|
-
|
|
85
|
+
&.error:has(input:checked)::before {
|
|
86
|
+
background: var(--sys-color-icon-error);
|
|
96
87
|
}
|
|
97
88
|
|
|
98
|
-
&.error:
|
|
89
|
+
&.error:has(input:focus-visible)::before {
|
|
99
90
|
outline-color: var(--sys-color-border-error);
|
|
100
|
-
border-color: var(--sys-color-border-error);
|
|
101
91
|
}
|
|
102
92
|
|
|
103
93
|
// Label — direct span child
|