@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.6-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.
Files changed (64) hide show
  1. package/agorapulse-ui-theme-22.0.6-beta.1.tgz +0 -0
  2. package/assets/desktop_variables.css +624 -460
  3. package/assets/mobile_variables.css +624 -460
  4. package/assets/style/_button-mixins.scss +33 -92
  5. package/assets/style/_input.scss +4 -0
  6. package/assets/style/_link.scss +31 -35
  7. package/assets/style/_select.scss +67 -44
  8. package/assets/style/_table.scss +52 -20
  9. package/assets/style/_tooltip.scss +6 -7
  10. package/assets/style/components-custom-style/_input.scss +22 -28
  11. package/assets/style/components-custom-style/_ng-select.scss +15 -7
  12. package/assets/style/css-ui/_action-dropdown.scss +39 -27
  13. package/assets/style/css-ui/_badge.scss +2 -5
  14. package/assets/style/css-ui/_button.scss +141 -96
  15. package/assets/style/css-ui/_checkbox.scss +6 -11
  16. package/assets/style/css-ui/_counter.scss +7 -15
  17. package/assets/style/css-ui/_icon-button.scss +24 -68
  18. package/assets/style/css-ui/_infobox.scss +25 -68
  19. package/assets/style/css-ui/_input.scss +31 -38
  20. package/assets/style/css-ui/_label.scss +10 -8
  21. package/assets/style/css-ui/_link.scss +31 -36
  22. package/assets/style/css-ui/_list-panel.scss +33 -15
  23. package/assets/style/css-ui/_radio-card.scss +37 -31
  24. package/assets/style/css-ui/_radio.scss +17 -27
  25. package/assets/style/css-ui/_select.scss +53 -50
  26. package/assets/style/css-ui/_selection-dropdown.scss +25 -35
  27. package/assets/style/css-ui/_snackbar.scss +2 -2
  28. package/assets/style/css-ui/_split-button.scss +4 -14
  29. package/assets/style/css-ui/_status.scss +26 -29
  30. package/assets/style/css-ui/_table.scss +52 -20
  31. package/assets/style/css-ui/_tabs.scss +15 -31
  32. package/assets/style/css-ui/_tag.scss +25 -65
  33. package/assets/style/css-ui/_textarea.scss +25 -30
  34. package/assets/style/css-ui/_toggle.scss +12 -11
  35. package/assets/style/css-ui/_tooltip.scss +10 -7
  36. package/assets/style/css-ui/index.css +525 -638
  37. package/assets/style/css-ui/index.css.map +1 -1
  38. package/package.json +1 -1
  39. package/src/build.js +1 -3
  40. package/src/desktop_config.js +1 -2
  41. package/src/mobile_config.js +1 -2
  42. package/src/tokens/components/button.json +225 -11
  43. package/src/tokens/components/icon-button.json +11 -1
  44. package/src/tokens/components/input.json +64 -145
  45. package/src/tokens/components/link.json +132 -0
  46. package/src/tokens/components/select.json +14 -14
  47. package/src/tokens/components/status.json +129 -0
  48. package/src/tokens/reference/v3.json +242 -0
  49. package/src/tokens/system/color-border.json +50 -43
  50. package/src/tokens/system/color-data.json +58 -0
  51. package/src/tokens/system/color-icon.json +62 -45
  52. package/src/tokens/system/color-link.json +15 -9
  53. package/src/tokens/system/color-surface.json +87 -77
  54. package/src/tokens/system/color-text.json +63 -52
  55. package/src/tokens/system/height.json +12 -3
  56. package/src/tokens/system/motion.json +10 -0
  57. package/src/tokens/system/radius.json +18 -2
  58. package/src/tokens/system/spacing.json +13 -13
  59. package/agorapulse-ui-theme-22.0.3-beta.1.tgz +0 -0
  60. package/src/formats.js +0 -36
  61. package/src/tokens/components/action-dropdown.json +0 -93
  62. package/src/tokens/components/close-button.json +0 -22
  63. package/src/tokens/components/infobox.json +0 -156
  64. package/src/tokens/components/radio.json +0 -11
@@ -11,7 +11,7 @@
11
11
  border-radius: var(--ref-border-radius-md);
12
12
  border-collapse: separate;
13
13
  border-spacing: 0;
14
- background-color: var(--ref-color-white);
14
+ background-color: var(--sys-color-surface-default);
15
15
 
16
16
  tbody {
17
17
  height: calc(100% - var(--ap-table-cell-height));
@@ -41,22 +41,38 @@
41
41
 
42
42
  // Outer border variant
43
43
  &.outer-border {
44
- border: 1px solid var(--ref-color-grey-20);
44
+ border: 1px solid var(--sys-color-border-default);
45
45
  }
46
46
 
47
47
  // Header background variant
48
48
  &.header-background th {
49
- background-color: var(--ref-color-grey-05);
49
+ background-color: var(--sys-color-surface-tertiary);
50
50
  }
51
51
 
52
52
  // Striped variant
53
53
  &.striped tbody {
54
54
  tr:nth-child(even) {
55
- background-color: var(--ref-color-grey-bg);
55
+ background-color: var(--sys-color-surface-secondary);
56
+
57
+ &:hover {
58
+ background-color: var(--sys-color-surface-interactive-hovered);
59
+ }
60
+
61
+ &:active {
62
+ background-color: var(--sys-color-surface-interactive-clicked);
63
+ }
56
64
  }
57
65
 
58
66
  tr.selected {
59
- background-color: var(--ref-color-soft-blue-10);
67
+ background-color: var(--sys-color-surface-interactive-active);
68
+
69
+ &:hover {
70
+ background-color: var(--sys-color-surface-interactive-active-hovered);
71
+ }
72
+
73
+ &:active {
74
+ background-color: var(--sys-color-surface-interactive-active-clicked);
75
+ }
60
76
  }
61
77
  }
62
78
 
@@ -96,10 +112,26 @@
96
112
 
97
113
  // === Row styles — implicit tr ===
98
114
  tbody tr {
99
- background-color: var(--ref-color-white);
115
+ background-color: var(--sys-color-surface-interactive-default);
116
+
117
+ &:hover {
118
+ background-color: var(--sys-color-surface-interactive-hovered);
119
+ }
120
+
121
+ &:active {
122
+ background-color: var(--sys-color-surface-interactive-clicked);
123
+ }
100
124
 
101
125
  &.selected {
102
- background-color: var(--ref-color-soft-blue-10);
126
+ background-color: var(--sys-color-surface-interactive-active);
127
+
128
+ &:hover {
129
+ background-color: var(--sys-color-surface-interactive-active-hovered);
130
+ }
131
+
132
+ &:active {
133
+ background-color: var(--sys-color-surface-interactive-active-clicked);
134
+ }
103
135
  }
104
136
 
105
137
  &:last-child td {
@@ -114,10 +146,10 @@
114
146
  text-align: left;
115
147
  font-size: var(--ref-font-size-xs);
116
148
  font-weight: var(--ref-font-weight-bold);
117
- color: var(--ref-color-grey-100);
149
+ color: var(--sys-color-text-default);
118
150
  border: none;
119
- border-bottom: 1px solid var(--ref-color-grey-10);
120
- background-color: var(--ref-color-white);
151
+ border-bottom: 1px solid var(--sys-color-border-default);
152
+ background-color: var(--sys-color-surface-default);
121
153
  position: sticky;
122
154
  top: 0;
123
155
  z-index: 1;
@@ -148,7 +180,7 @@
148
180
  }
149
181
 
150
182
  &.sorted {
151
- color: var(--ref-color-electric-blue-150);
183
+ color: var(--sys-color-text-interactive-active);
152
184
 
153
185
  > i {
154
186
  opacity: 1;
@@ -185,9 +217,9 @@
185
217
  td {
186
218
  padding: 0 var(--ref-spacing-xs);
187
219
  font-size: var(--ref-font-size-sm);
188
- color: var(--ref-color-grey-100);
220
+ color: var(--sys-color-text-default);
189
221
  border: none;
190
- border-bottom: 1px solid var(--ref-color-grey-10);
222
+ border-bottom: 1px solid var(--sys-color-border-default);
191
223
  height: var(--ap-table-cell-height);
192
224
  vertical-align: middle;
193
225
  font-family: var(--ref-font-family);
@@ -216,16 +248,16 @@
216
248
  tfoot td {
217
249
  padding: 0 var(--ref-spacing-xs);
218
250
  font-size: var(--ref-font-size-sm);
219
- color: var(--ref-color-grey-100);
251
+ color: var(--sys-color-text-default);
220
252
  border: none;
221
- border-top: 1px solid var(--ref-color-grey-10);
253
+ border-top: 1px solid var(--sys-color-border-default);
222
254
  height: var(--ap-table-cell-height);
223
255
  vertical-align: middle;
224
256
  font-family: var(--ref-font-family);
225
257
  position: sticky;
226
258
  bottom: 0;
227
259
  z-index: 1;
228
- background-color: var(--ref-color-white);
260
+ background-color: var(--sys-color-surface-default);
229
261
 
230
262
  &.right {
231
263
  text-align: right;
@@ -266,7 +298,7 @@
266
298
 
267
299
  // Cell text
268
300
  .ap-table-cell-text {
269
- color: var(--ref-color-grey-100);
301
+ color: var(--sys-color-text-default);
270
302
  font-size: var(--ref-font-size-sm);
271
303
  line-height: var(--ref-line-height-sm);
272
304
 
@@ -277,7 +309,7 @@
277
309
 
278
310
  // Cell description
279
311
  .ap-table-cell-description {
280
- color: var(--ref-color-grey-80);
312
+ color: var(--sys-color-text-secondary);
281
313
  font-size: var(--ref-font-size-xs);
282
314
  line-height: var(--ref-line-height-xs);
283
315
  }
@@ -293,14 +325,14 @@
293
325
  // Drag handle
294
326
  .ap-table-drag-handle {
295
327
  cursor: move;
296
- color: var(--ref-color-grey-40);
328
+ color: var(--sys-color-icon-subtle);
297
329
  }
298
330
 
299
331
  // Empty state
300
332
  .ap-table-empty {
301
333
  padding: var(--ref-spacing-xl);
302
334
  text-align: center;
303
- color: var(--ref-color-grey-60);
335
+ color: var(--sys-color-text-subtle);
304
336
  font-size: var(--ref-font-size-sm);
305
337
  }
306
338
 
@@ -1,8 +1,7 @@
1
1
  // Agorapulse Tabs Styles
2
2
  //
3
- // Colours come from the semantic `interactive/*` state matrix
4
- // (V2 Style Guide - Tokens, node 1178:11217). Hover and pressed are expressed as a
5
- // bottom border, not a tinted background — the design binds no surface for them.
3
+ // Per the spec frame, state is carried by the bottom border alone: 1px transparent at rest,
4
+ // 2px on hover and press, 4px when active. No tab ever has a background.
6
5
 
7
6
  .ap-tabs {
8
7
  display: flex;
@@ -46,7 +45,7 @@
46
45
  display: flex;
47
46
  align-items: center;
48
47
  justify-content: center;
49
- gap: var(--sys-spacing-container-sm);
48
+ gap: var(--sys-spacing-inline-icon-default);
50
49
  background: transparent;
51
50
  border: none;
52
51
  cursor: pointer;
@@ -54,11 +53,10 @@
54
53
  text-align: center;
55
54
  position: relative;
56
55
  white-space: nowrap;
57
- // No token covers 48px: the sys height scale stops at `control` (36px).
58
- min-height: 48px;
59
- padding: var(--sys-spacing-container-md) var(--sys-spacing-container-lg);
56
+ padding: 0 var(--ref-spacing-sm);
60
57
  font-size: var(--sys-text-style-body-size);
61
58
  line-height: var(--sys-text-style-body-line-height);
59
+ min-height: 48px;
62
60
  color: var(--sys-color-text-interactive-default);
63
61
  font-weight: var(--sys-text-style-body-weight);
64
62
 
@@ -67,27 +65,26 @@
67
65
  width: 16px;
68
66
  height: 16px;
69
67
  flex-shrink: 0;
70
- color: var(--sys-color-icon-interactive-default);
71
68
  }
72
69
 
73
- // Shared bottom indicator: 2px for hover/pressed, 4px when active.
70
+ // Underline carrying the state
74
71
  &::after {
75
72
  content: '';
76
73
  position: absolute;
77
74
  bottom: -1px;
78
75
  left: 0;
79
76
  right: 0;
80
- height: 2px;
77
+ height: 0;
81
78
  background-color: transparent;
82
79
  }
83
80
 
84
- // Hover state — a border, no background
85
- &:hover:not(:disabled):not(.active)::after {
81
+ &:hover:not(:disabled):not(.disabled):not(.active)::after {
82
+ height: 2px;
86
83
  background-color: var(--sys-color-border-interactive-hovered);
87
84
  }
88
85
 
89
- // Pressed state — a border, no background
90
- &:active:not(:disabled):not(.active)::after {
86
+ &:active:not(:disabled):not(.disabled):not(.active)::after {
87
+ height: 2px;
91
88
  background-color: var(--sys-color-border-interactive-clicked);
92
89
  }
93
90
 
@@ -96,9 +93,7 @@
96
93
  outline: none;
97
94
  }
98
95
 
99
- // The design specifies no focus treatment for tabs, so the ring is kept as it
100
- // was — minus the tinted background, whose colour the design dropped.
101
- &:focus-visible:not(.active) {
96
+ &:focus-visible {
102
97
  outline: none;
103
98
  box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
104
99
  border-radius: var(--sys-radius-inner);
@@ -118,9 +113,7 @@
118
113
  // Active tab
119
114
  &.active {
120
115
  color: var(--sys-color-text-interactive-active);
121
- // Fakes bold without the reflow real bold would cause; Figma specifies
122
- // `Body - Bold` here.
123
- text-shadow: 0.5px 0 0 currentColor;
116
+ font-weight: var(--sys-text-style-body-bold-weight);
124
117
 
125
118
  > i {
126
119
  color: var(--sys-color-icon-interactive-active);
@@ -130,16 +123,9 @@
130
123
  height: 4px;
131
124
  background-color: var(--sys-color-border-interactive-active);
132
125
  }
133
-
134
- &:focus-visible {
135
- outline: none;
136
- box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
137
- border-radius: var(--sys-radius-inner);
138
- }
139
126
  }
140
127
 
141
- // Feature locked tab — only the lock glyph and the active treatment differ.
142
- // Hover and pressed reuse the shared grey borders above.
128
+ // Feature locked tab
143
129
  &.feature-locked {
144
130
  // Only the lock icon (last <i>) gets feature-lock color;
145
131
  // start icon inherits text color like in Angular
@@ -149,9 +135,8 @@
149
135
 
150
136
  &.active {
151
137
  color: var(--sys-color-text-featurelock);
152
- text-shadow: 0.5px 0 0 currentColor;
153
138
 
154
- > i:first-of-type {
139
+ > i {
155
140
  color: var(--sys-color-icon-featurelock);
156
141
  }
157
142
 
@@ -188,7 +173,6 @@
188
173
  // Tab panel
189
174
  .ap-tabs-panel {
190
175
  display: none;
191
- // 24px: no sys spacing token covers it (the container scale stops at 16px).
192
176
  padding: var(--ref-spacing-md) 0;
193
177
 
194
178
  &.active {
@@ -24,7 +24,7 @@
24
24
  padding: 0 2px 0 var(--ref-spacing-xxxs);
25
25
  }
26
26
 
27
- // Mini size
27
+ // Mini size — 18px has no height token
28
28
  &.mini {
29
29
  height: 18px;
30
30
  padding: 0 2px;
@@ -42,25 +42,24 @@
42
42
  height: 12px;
43
43
  }
44
44
 
45
- // Close button with <i class="ap-icon-close"> inside
45
+ // Close button with <i class="ap-icon-close"> inside — the close-button helper's spec
46
46
  > button {
47
- // Action icon, deliberately neutral rather than tinted (Figma: color/icon/secondary)
48
- color: var(--sys-color-icon-secondary);
49
47
  display: flex;
50
48
  justify-content: center;
51
49
  align-items: center;
52
50
  flex-shrink: 0;
53
- width: var(--comp-close-button-size);
54
- max-width: var(--comp-close-button-size);
55
- height: var(--comp-close-button-size);
56
- max-height: var(--comp-close-button-size);
51
+ width: 20px;
52
+ max-width: 20px;
53
+ height: 20px;
54
+ max-height: 20px;
57
55
  border-radius: 50%;
58
56
  background: transparent;
59
57
  border: none;
60
- padding: var(--comp-close-button-padding);
58
+ padding: 0;
61
59
  outline: none;
62
60
  cursor: pointer;
63
61
  transition: background-color 0.25s;
62
+ color: var(--sys-color-icon-default);
64
63
 
65
64
  > i {
66
65
  width: 12px;
@@ -74,11 +73,11 @@
74
73
  }
75
74
 
76
75
  &:hover {
77
- background: var(--comp-close-button-hover-background);
76
+ background: var(--sys-color-surface-interactive-hovered);
78
77
  }
79
78
 
80
79
  &:active {
81
- background: var(--comp-close-button-active-background);
80
+ background: var(--sys-color-surface-interactive-clicked);
82
81
  outline: none;
83
82
  }
84
83
  }
@@ -94,64 +93,25 @@
94
93
  }
95
94
  }
96
95
 
97
- // Color variants
98
- &.blue {
99
- background-color: var(--sys-color-surface-category-blue);
100
- color: var(--sys-color-text-category-blue);
101
-
102
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
103
- > i {
104
- color: var(--sys-color-icon-category-blue);
105
- }
106
- }
107
-
108
- &.grey {
109
- background-color: var(--sys-color-surface-category-grey);
110
- color: var(--sys-color-text-category-grey);
111
-
112
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
113
- > i {
114
- color: var(--sys-color-icon-category-grey);
96
+ // Color variants. The leading icon inherits the text colour; the close button does not —
97
+ // it keeps the helper's neutral glyph, which is what the spec draws.
98
+ @each $hue in ('blue', 'grey', 'menthol', 'green', 'yellow', 'red') {
99
+ &.#{$hue} {
100
+ background-color: var(--sys-color-surface-category-#{$hue});
101
+ color: var(--sys-color-text-category-#{$hue});
115
102
  }
116
103
  }
117
104
 
105
+ // V3 dropped the orange category in favour of yellow. Left on the V2 ramps, border
106
+ // included, so existing tagOrange tags render exactly as before.
118
107
  &.tagOrange {
119
- background-color: var(--sys-color-surface-category-orange);
120
- color: var(--sys-color-text-category-orange);
121
-
122
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
123
- > i {
124
- color: var(--sys-color-icon-category-orange);
125
- }
126
- }
127
-
128
- &.menthol {
129
- background-color: var(--sys-color-surface-category-menthol);
130
- color: var(--sys-color-text-category-menthol);
108
+ background-color: var(--ref-color-tag-orange-10);
109
+ border: 1px solid var(--ref-color-tag-orange-20);
110
+ color: var(--ref-color-tag-orange-150);
131
111
 
132
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
133
- > i {
134
- color: var(--sys-color-icon-category-menthol);
135
- }
136
- }
137
-
138
- &.green {
139
- background-color: var(--sys-color-surface-category-green);
140
- color: var(--sys-color-text-category-green);
141
-
142
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
143
- > i {
144
- color: var(--sys-color-icon-category-green);
145
- }
146
- }
147
-
148
- &.red {
149
- background-color: var(--sys-color-surface-category-red);
150
- color: var(--sys-color-text-category-red);
151
-
152
- // Leading content icon carries the category colour (Figma: color/icon/category/*)
153
- > i {
154
- color: var(--sys-color-icon-category-red);
112
+ // Keeps the border compensation the other hues no longer need.
113
+ &:has(> button) {
114
+ padding-right: 1px;
155
115
  }
156
116
  }
157
117
  }
@@ -175,5 +135,5 @@
175
135
  .ap-tag-list {
176
136
  display: flex;
177
137
  flex-wrap: wrap;
178
- gap: var(--sys-spacing-container-sm);
138
+ gap: var(--ref-spacing-xxs);
179
139
  }
@@ -2,11 +2,6 @@
2
2
  @use 'mixins' as m;
3
3
 
4
4
  // Textarea field container
5
- //
6
- // Same treatment as the input (V2 Style Guide - Tokens, node 1207:11220): the field
7
- // is an input, so it reads the semantic `input/*` state matrix. The
8
- // `--comp-forms-*` metrics stay — that tier is shared with select and the legacy
9
- // input, which the frame does not cover.
10
5
  .ap-textarea-field {
11
6
  display: flex;
12
7
  flex-direction: column;
@@ -21,7 +16,7 @@
21
16
  font-weight: var(--comp-forms-label-font-weight);
22
17
  line-height: var(--comp-forms-label-line-height);
23
18
  font-family: var(--comp-forms-label-font-family);
24
- color: var(--sys-color-text-default);
19
+ color: var(--comp-forms-label-text-color);
25
20
 
26
21
  // Description — implicit > label > small
27
22
  > small {
@@ -29,7 +24,7 @@
29
24
  font-weight: var(--comp-forms-label-description-text-font-weight);
30
25
  line-height: var(--comp-forms-label-description-text-line-height);
31
26
  font-family: var(--comp-forms-label-description-text-font-family);
32
- color: var(--sys-color-text-secondary);
27
+ color: var(--comp-forms-label-description-text-color);
33
28
  }
34
29
  }
35
30
 
@@ -38,52 +33,53 @@
38
33
  resize: none;
39
34
  width: 100%;
40
35
  min-width: 256px;
41
- border: 1px solid var(--sys-color-border-input-default);
42
- background-color: var(--sys-color-surface-interactive-default);
36
+ border: 1px solid var(--comp-input-border-default-color);
37
+ background-color: var(--comp-input-fill-color);
43
38
  padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
44
- border-radius: var(--sys-radius-inner);
39
+ border-radius: var(--comp-input-border-radius);
45
40
  font-family: var(--comp-input-text-font-family);
46
41
  font-size: var(--comp-input-text-size);
47
42
  font-weight: var(--comp-input-text-font-weight);
48
- color: var(--sys-color-text-default);
43
+ color: var(--comp-input-text-default-color);
49
44
  box-sizing: border-box;
50
45
  outline: none;
51
46
 
52
47
  &::placeholder {
53
- color: var(--sys-color-text-subtle);
48
+ color: var(--comp-input-text-placeholder-color);
54
49
  }
55
50
 
56
- // Hover, pressed and focus all outrank the invalid/valid rules below, which is
57
- // how the design replaces the error or success border while the field is being
58
- // interacted with — the message underneath keeps the red or green.
59
- &:hover:not(:disabled) {
60
- border-color: var(--sys-color-border-input-hovered);
51
+ &:hover:not(:focus):not(:disabled) {
52
+ border-color: var(--comp-input-border-hover-color);
61
53
  }
62
54
 
63
- &:active:not(:disabled) {
64
- border-color: var(--sys-color-border-input-clicked);
65
- }
66
-
67
- &:focus:not(:disabled):not(:active) {
68
- border-color: var(--sys-color-border-input-active);
55
+ // Pressed is its own shade now, distinct from focus
56
+ &:active:not(:focus):not(:disabled) {
57
+ border-color: var(--comp-input-border-clicked-color);
69
58
  }
70
59
 
71
60
  &:disabled {
72
- background-color: var(--sys-color-surface-input-disabled);
73
- border-color: var(--sys-color-border-input-disabled);
74
- color: var(--sys-color-text-interactive-disabled);
61
+ background-color: var(--comp-input-fill-disabled-color);
62
+ color: var(--comp-input-text-disabled-color);
75
63
  cursor: default;
76
64
  }
77
65
  }
78
66
 
79
67
  // Invalid state — on container
80
68
  &.invalid > textarea {
81
- border-color: var(--sys-color-border-error);
69
+ border-color: var(--comp-input-border-error-color);
70
+
71
+ &:hover:not(:focus):not(:disabled) {
72
+ border-color: var(--comp-input-border-error-color);
73
+ }
82
74
  }
83
75
 
84
76
  // Valid state — on container
85
77
  &.valid > textarea {
86
- border-color: var(--sys-color-border-success);
78
+ border-color: var(--comp-input-border-success-color);
79
+
80
+ &:hover:not(:focus):not(:disabled) {
81
+ border-color: var(--comp-input-border-success-color);
82
+ }
87
83
  }
88
84
 
89
85
  // Resize variants — on container
@@ -112,9 +108,8 @@
112
108
  color: var(--sys-color-text-secondary);
113
109
  text-align: right;
114
110
 
115
- // `warning` has no counterpart in the frame and keeps its own orange.
116
111
  &.warning {
117
- color: var(--ref-color-orange-100);
112
+ color: var(--sys-color-text-warning);
118
113
  }
119
114
 
120
115
  &.error {
@@ -1,6 +1,7 @@
1
1
  // Agorapulse Toggle Styles
2
2
  @use 'mixins' as m;
3
3
 
4
+ // The track takes the border/input/* family, not a surface — that is what the spec binds.
4
5
  .ap-toggle-container {
5
6
  display: flex;
6
7
  align-items: center;
@@ -61,22 +62,22 @@
61
62
  }
62
63
  }
63
64
 
64
- // Hover and focus share a shade — that is what the design's focused row shows.
65
- &:hover:not(:has(input:disabled)) > i,
66
- &:has(input:focus-visible):not(:has(input:disabled)) > i {
65
+ // Hover state (unchecked)
66
+ &:hover:not(:has(input:disabled)) > i {
67
67
  background: var(--sys-color-border-input-hovered);
68
68
  }
69
69
 
70
- &:hover:not(:has(input:disabled)):has(input:checked) > i,
71
- &:has(input:focus-visible):not(:has(input:disabled)):has(input:checked) > i {
72
- background: var(--sys-color-border-input-active-hovered);
73
- }
74
-
75
- // Pressed — a distinct shade the unchecked side did not carry before.
70
+ // Active state (unchecked)
76
71
  &:active:not(:has(input:disabled)) > i {
77
72
  background: var(--sys-color-border-input-clicked);
78
73
  }
79
74
 
75
+ // Hover state (checked)
76
+ &:hover:not(:has(input:disabled)):has(input:checked) > i {
77
+ background: var(--sys-color-border-input-active-hovered);
78
+ }
79
+
80
+ // Active state (checked)
80
81
  &:active:not(:has(input:disabled)):has(input:checked) > i {
81
82
  background: var(--sys-color-border-input-active-clicked);
82
83
  }
@@ -110,7 +111,7 @@
110
111
  }
111
112
  }
112
113
 
113
- // Disabled + checked keeps a blue tint rather than going grey.
114
+ // Disabled + checked — the spec tints this pale blue rather than greying it out
114
115
  &:has(input:disabled:checked) > i {
115
116
  background: var(--sys-color-border-input-active-disabled);
116
117
 
@@ -124,7 +125,7 @@
124
125
  display: flex;
125
126
  align-items: center;
126
127
  @include m.text-style('body');
127
- color: var(--ref-color-grey-100);
128
+ color: var(--sys-color-text-interactive-default);
128
129
  user-select: none;
129
130
  cursor: pointer;
130
131
 
@@ -18,10 +18,9 @@
18
18
  max-width: 350px;
19
19
  background: var(--sys-color-surface-default);
20
20
  border-radius: var(--sys-radius-inner);
21
- // Shadow/Low (default) — the sys layer has no elevation token yet.
22
- box-shadow:
23
- 0 4px 6px -2px rgba(52, 69, 99, 0.15),
24
- 0 4px 25px -2px rgba(52, 69, 99, 0.15);
21
+ // drop-shadow, not box-shadow: the arrow is a clipped ::after outside the box and a
22
+ // box-shadow would skip it. drop-shadow has no spread, so the spec's -2px is dropped.
23
+ filter: drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15));
25
24
  // Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
26
25
  position: fixed;
27
26
  z-index: 9999999;
@@ -36,7 +35,7 @@
36
35
  &.bottom-right,
37
36
  &.left,
38
37
  &.right {
39
- padding: var(--sys-spacing-container-sm) var(--sys-spacing-container-md);
38
+ padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
40
39
  color: var(--sys-color-text-default);
41
40
  font-family: var(--sys-text-style-body-font-family);
42
41
  font-size: var(--sys-text-style-body-size);
@@ -125,9 +124,13 @@
125
124
  transform: translateX(calc(-100% + var(--ap-arrow-height) / 2)) translateY(-50%) rotate(90deg);
126
125
  }
127
126
 
128
- // Custom template tooltip (rich content). Same surface and shadow as the base
129
- // tooltip now — the design no longer distinguishes them by colour.
127
+ // Custom template tooltip (rich content) — same surface as the simple one now
130
128
  &.custom {
129
+ background-color: var(--sys-color-surface-default);
131
130
  color: var(--sys-color-text-default);
131
+
132
+ &::after {
133
+ background-color: var(--sys-color-surface-default);
134
+ }
132
135
  }
133
136
  }