@agorapulse/ui-theme 22.0.6-beta.1 → 22.0.7

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 (61) hide show
  1. package/agorapulse-ui-theme-22.0.7.tgz +0 -0
  2. package/assets/desktop_variables.css +263 -346
  3. package/assets/mobile_variables.css +263 -346
  4. package/assets/style/_input.scss +0 -4
  5. package/assets/style/_select.scss +46 -75
  6. package/assets/style/_table.scss +20 -52
  7. package/assets/style/_tooltip.scss +19 -18
  8. package/assets/style/components-custom-style/_input.scss +0 -4
  9. package/assets/style/components-custom-style/_ng-select.scss +7 -15
  10. package/assets/style/css-ui/_action-dropdown.scss +33 -50
  11. package/assets/style/css-ui/_badge.scss +11 -9
  12. package/assets/style/css-ui/_button.scss +38 -161
  13. package/assets/style/css-ui/_checkbox.scss +36 -34
  14. package/assets/style/css-ui/_counter.scss +30 -23
  15. package/assets/style/css-ui/_icon-button.scss +22 -24
  16. package/assets/style/css-ui/_infobox.scss +68 -25
  17. package/assets/style/css-ui/_input.scss +1 -6
  18. package/assets/style/css-ui/_label.scss +16 -15
  19. package/assets/style/css-ui/_list-panel.scss +15 -33
  20. package/assets/style/css-ui/_radio-card.scss +38 -52
  21. package/assets/style/css-ui/_radio.scss +28 -32
  22. package/assets/style/css-ui/_select.scss +50 -66
  23. package/assets/style/css-ui/_selection-dropdown.scss +30 -57
  24. package/assets/style/css-ui/_table.scss +20 -52
  25. package/assets/style/css-ui/_tabs.scss +62 -54
  26. package/assets/style/css-ui/_tag.scss +76 -34
  27. package/assets/style/css-ui/_textarea.scss +7 -8
  28. package/assets/style/css-ui/_toggle.scss +17 -27
  29. package/assets/style/css-ui/_tooltip.scss +13 -15
  30. package/assets/style/css-ui/index.css +693 -657
  31. package/assets/style/css-ui/index.css.map +1 -1
  32. package/package.json +1 -1
  33. package/src/tokens/components/action-dropdown.json +93 -0
  34. package/src/tokens/components/badge.json +53 -0
  35. package/src/tokens/components/button.json +11 -225
  36. package/src/tokens/components/close-button.json +22 -0
  37. package/src/tokens/components/counter.json +108 -0
  38. package/src/tokens/components/icon-button.json +2 -12
  39. package/src/tokens/components/infobox.json +156 -0
  40. package/src/tokens/components/input.json +145 -64
  41. package/src/tokens/components/label.json +56 -0
  42. package/src/tokens/components/link.json +5 -10
  43. package/src/tokens/components/radio.json +11 -0
  44. package/src/tokens/components/select.json +14 -14
  45. package/src/tokens/components/status-card.json +187 -0
  46. package/src/tokens/components/tabs.json +136 -0
  47. package/src/tokens/components/tag.json +194 -0
  48. package/src/tokens/components/tooltip.json +36 -0
  49. package/src/tokens/reference/animation.json +0 -5
  50. package/agorapulse-ui-theme-22.0.6-beta.1.tgz +0 -0
  51. package/src/tokens/reference/v3.json +0 -242
  52. package/src/tokens/system/color-border.json +0 -85
  53. package/src/tokens/system/color-data.json +0 -58
  54. package/src/tokens/system/color-icon.json +0 -95
  55. package/src/tokens/system/color-link.json +0 -29
  56. package/src/tokens/system/color-surface.json +0 -130
  57. package/src/tokens/system/color-text.json +0 -89
  58. package/src/tokens/system/height.json +0 -24
  59. package/src/tokens/system/motion.json +0 -22
  60. package/src/tokens/system/radius.json +0 -28
  61. package/src/tokens/system/spacing.json +0 -25
@@ -4,7 +4,7 @@
4
4
  .ap-checkbox-container {
5
5
  display: flex;
6
6
  align-items: center;
7
- gap: var(--sys-spacing-inline-icon-default);
7
+ gap: var(--ref-spacing-xxs);
8
8
  cursor: pointer;
9
9
 
10
10
  // Hide native checkbox input (accessible)
@@ -17,8 +17,7 @@
17
17
  width: 100%;
18
18
  }
19
19
 
20
- // No-label variant: larger hit area with background feedback.
21
- // Not in the spec — its surfaces stay on the V2 ramps until design draws it.
20
+ // No-label variant: larger hit area with background feedback
22
21
  &:not(:has(> span:not(:empty))) {
23
22
  padding: 10px;
24
23
  border-radius: var(--ref-border-radius-md);
@@ -53,9 +52,9 @@
53
52
  justify-content: center;
54
53
  align-items: center;
55
54
  @include m.fixed-size(16px);
56
- border-radius: var(--sys-radius-inner);
57
- border: 1px solid var(--sys-color-border-input-default);
58
- background: var(--sys-color-surface-input-default);
55
+ border-radius: var(--sys-border-radius-sm);
56
+ border: 1px solid var(--ref-color-grey-60);
57
+ background: var(--ref-color-white);
59
58
  box-sizing: border-box;
60
59
  flex-shrink: 0;
61
60
  transition:
@@ -71,7 +70,7 @@
71
70
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M14.238 3.337a.92.92 0 0 1 .025 1.301l-7.7 8a.92.92 0 0 1-1.326 0l-3.5-3.636a.92.92 0 1 1 1.326-1.276L5.9 10.674l7.037-7.312a.92.92 0 0 1 1.301-.025' clip-rule='evenodd' fill='white'/%3E%3C/svg%3E");
72
71
  mask-size: contain;
73
72
  mask-repeat: no-repeat;
74
- background-color: var(--sys-color-icon-on-color);
73
+ background-color: var(--ref-color-white);
75
74
  }
76
75
 
77
76
  // Indeterminate dash via CSS
@@ -80,24 +79,24 @@
80
79
  display: none;
81
80
  width: 8px;
82
81
  height: 1.5px;
83
- background: var(--sys-color-icon-on-color);
82
+ background: var(--ref-color-white);
84
83
  }
85
84
  }
86
85
 
87
86
  // Hover state
88
87
  &:hover:not(:has(input:disabled)) > i {
89
- border-color: var(--sys-color-border-input-hovered);
88
+ border-color: var(--ref-color-grey-80);
90
89
  }
91
90
 
92
91
  // Active state
93
92
  &:active:not(:has(input:disabled)) > i {
94
- border-color: var(--sys-color-border-input-clicked);
93
+ border-color: var(--ref-color-grey-100);
95
94
  }
96
95
 
97
- // Checked state — the spec draws no border, so the stroke matches the fill
96
+ // Checked state — show checkmark
98
97
  &:has(input:checked) > i {
99
- background: var(--sys-color-surface-input-active);
100
- border-color: var(--sys-color-surface-input-active);
98
+ background: var(--ref-color-electric-blue-100);
99
+ border-color: var(--ref-color-electric-blue-100);
101
100
 
102
101
  &::after {
103
102
  display: block;
@@ -106,33 +105,33 @@
106
105
 
107
106
  // Checked hover
108
107
  &:hover:not(:has(input:disabled)):has(input:checked) > i {
109
- background: var(--sys-color-surface-input-active-hovered);
110
- border-color: var(--sys-color-surface-input-active-hovered);
108
+ background: var(--ref-color-electric-blue-80);
109
+ border-color: var(--ref-color-electric-blue-100);
111
110
  }
112
111
 
113
112
  // Checked active
114
113
  &:active:not(:has(input:disabled)):has(input:checked) > i {
115
- background: var(--sys-color-surface-input-active-clicked);
116
- border-color: var(--sys-color-surface-input-active-clicked);
114
+ background: var(--ref-color-electric-blue-60);
115
+ border-color: var(--ref-color-electric-blue-100);
117
116
  }
118
117
 
119
118
  // Disabled state
120
119
  &:has(input:disabled) > i {
121
- background: var(--sys-color-surface-input-disabled);
122
- border-color: var(--sys-color-border-input-disabled);
120
+ background: var(--ref-color-grey-10);
121
+ border-color: var(--ref-color-grey-20);
123
122
  pointer-events: none;
124
123
  }
125
124
 
126
125
  // Disabled + checked
127
126
  &:has(input:disabled:checked) > i {
128
- background: var(--sys-color-surface-input-active-disabled);
129
- border-color: var(--sys-color-surface-input-active-disabled);
127
+ background: var(--ref-color-grey-20);
128
+ border-color: var(--ref-color-grey-20);
130
129
  }
131
130
 
132
- // Indeterminate state (class on container) — not in the spec, follows the checked treatment
131
+ // Indeterminate state (class on container)
133
132
  &.indeterminate > i {
134
- background: var(--sys-color-surface-input-active);
135
- border-color: var(--sys-color-surface-input-active);
133
+ background: var(--ref-color-electric-blue-100);
134
+ border-color: var(--ref-color-electric-blue-100);
136
135
 
137
136
  &::before {
138
137
  display: block;
@@ -141,14 +140,14 @@
141
140
 
142
141
  // Indeterminate hover
143
142
  &.indeterminate:hover:not(:has(input:disabled)) > i {
144
- background: var(--sys-color-surface-input-active-hovered);
145
- border-color: var(--sys-color-surface-input-active-hovered);
143
+ background: var(--ref-color-electric-blue-80);
144
+ border-color: var(--ref-color-electric-blue-100);
146
145
  }
147
146
 
148
147
  // Indeterminate disabled
149
148
  &.indeterminate:has(input:disabled) > i {
150
- background: var(--sys-color-surface-input-active-disabled);
151
- border-color: var(--sys-color-surface-input-active-disabled);
149
+ background: var(--ref-color-grey-20);
150
+ border-color: var(--ref-color-grey-20);
152
151
  }
153
152
 
154
153
  // Focus ring (any focus on hover-capable devices, matching original component)
@@ -158,17 +157,20 @@
158
157
  }
159
158
  }
160
159
 
161
- // Error state — wins over the unchecked state colours above
160
+ // Error state
162
161
  &.error > i {
163
- border-color: var(--sys-color-border-error);
162
+ border-color: var(--ref-color-red-100);
164
163
  }
165
164
 
166
165
  // Label — direct span child
167
166
  > span {
168
167
  display: flex;
169
168
  align-items: center;
170
- @include m.text-style('body');
171
- color: var(--sys-color-text-interactive-default);
169
+ font-family: var(--comp-forms-label-font-family);
170
+ font-size: var(--comp-forms-label-size);
171
+ font-weight: var(--comp-forms-label-font-weight);
172
+ line-height: var(--comp-forms-label-line-height);
173
+ color: var(--comp-forms-label-text-color);
172
174
  user-select: none;
173
175
 
174
176
  &:empty {
@@ -178,12 +180,12 @@
178
180
 
179
181
  // Label: disabled
180
182
  &:has(input:disabled) > span {
181
- color: var(--sys-color-text-interactive-disabled);
183
+ color: var(--ref-color-grey-60);
182
184
  cursor: default;
183
185
  }
184
186
 
185
187
  // Bold modifier
186
188
  &.bold > span {
187
- font-weight: var(--sys-text-style-body-bold-weight);
189
+ font-weight: var(--ref-font-weight-bold);
188
190
  }
189
191
  }
@@ -1,55 +1,59 @@
1
1
  // Agorapulse Counter Styles
2
- @use 'mixins' as m;
3
2
 
4
3
  .ap-counter {
5
4
  display: inline-flex;
6
5
  align-items: center;
7
6
  justify-content: center;
8
7
  width: fit-content;
9
- border-radius: 2px;
8
+ border-radius: var(--comp-counter-border-radius);
10
9
  padding: 0 2px;
11
10
  box-sizing: border-box;
12
11
 
13
12
  // Normal size (default)
14
13
  &.normal {
15
- @include m.text-style('caption-bold');
16
- height: var(--ref-font-line-height-xs);
17
- max-height: var(--ref-font-line-height-xs);
14
+ font-weight: var(--comp-counter-text-style-font-weight);
15
+ font-family: var(--comp-counter-text-style-font-family);
16
+ line-height: var(--comp-counter-text-style-line-height);
17
+ font-size: var(--comp-counter-text-style-size);
18
+ height: var(--comp-counter-height);
19
+ max-height: var(--comp-counter-height);
18
20
  }
19
21
 
20
22
  // Big size
21
23
  &.big {
22
- @include m.text-style('body-bold');
23
- height: var(--ref-font-line-height-sm);
24
- max-height: var(--ref-font-line-height-sm);
24
+ font-weight: var(--comp-counter-big-text-style-font-weight);
25
+ font-family: var(--comp-counter-big-text-style-font-family);
26
+ line-height: var(--comp-counter-big-text-style-line-height);
27
+ font-size: var(--comp-counter-big-text-style-size);
28
+ height: var(--comp-counter-big-height);
29
+ max-height: var(--comp-counter-big-height);
25
30
  }
26
31
 
27
32
  // Blue color (background by default)
28
33
  &.blue {
29
- color: var(--sys-color-text-information);
30
- background-color: var(--sys-color-surface-information);
34
+ color: var(--comp-counter-blue-color);
35
+ background-color: var(--comp-counter-blue-with-background-background-color);
31
36
 
32
37
  &.no-bg {
33
38
  background-color: transparent;
34
39
  }
35
40
  }
36
41
 
37
- // Orange color (background by default). Without a background the glyph carries the hue
38
- // itself, so it uses the notification text colour rather than the on-color white.
42
+ // Orange color (background by default)
39
43
  &.orange {
40
- color: var(--sys-color-text-on-color);
41
- background-color: var(--sys-color-surface-notification);
44
+ color: var(--comp-counter-orange-with-background-color);
45
+ background-color: var(--comp-counter-orange-with-background-background-color);
42
46
 
43
47
  &.no-bg {
44
- color: var(--sys-color-text-notification);
48
+ color: var(--comp-counter-orange-color);
45
49
  background-color: transparent;
46
50
  }
47
51
  }
48
52
 
49
53
  // Grey color (background by default)
50
54
  &.grey {
51
- color: var(--sys-color-text-default);
52
- background-color: var(--sys-color-surface-tertiary);
55
+ color: var(--comp-counter-grey-color);
56
+ background-color: var(--comp-counter-grey-with-background-background-color);
53
57
 
54
58
  &.no-bg {
55
59
  background-color: transparent;
@@ -59,11 +63,14 @@
59
63
  // Notification style
60
64
  &.notif {
61
65
  padding: 0 4px;
62
- border-radius: var(--ref-border-radius-md);
63
- @include m.text-style('caption-bold');
64
- min-width: var(--ref-font-line-height-xs);
65
- height: var(--ref-font-line-height-xs);
66
- color: var(--sys-color-text-on-color);
67
- background-color: var(--sys-color-surface-notification);
66
+ border-radius: var(--comp-counter-notif-border-radius);
67
+ font-size: var(--comp-counter-text-style-size);
68
+ font-weight: var(--comp-counter-text-style-font-weight);
69
+ font-family: var(--comp-counter-text-style-font-family);
70
+ line-height: var(--comp-counter-text-style-line-height);
71
+ min-width: var(--comp-counter-notif-min-width);
72
+ height: var(--comp-counter-notif-min-width);
73
+ color: var(--comp-counter-notif-color);
74
+ background-color: var(--comp-counter-notif-background-color);
68
75
  }
69
76
  }
@@ -24,7 +24,7 @@
24
24
  box-sizing: border-box;
25
25
 
26
26
  > i {
27
- color: var(--comp-button-ghost-grey-content);
27
+ color: var(--ref-color-grey-60);
28
28
  font-size: calc(var(--comp-icon-button-height) - (var(--comp-icon-button-padding) * 2));
29
29
  flex-shrink: 0;
30
30
  line-height: 1;
@@ -32,11 +32,11 @@
32
32
 
33
33
  // Default hover/active (flat, no color)
34
34
  &:hover:not(.stroked):not(.locked):not(:disabled) {
35
- background: var(--comp-button-ghost-grey-surface-hovered);
35
+ background: var(--ref-color-grey-05);
36
36
  }
37
37
 
38
38
  &:active:not(.stroked):not(.locked):not(:disabled) {
39
- background: var(--comp-button-ghost-grey-surface-clicked);
39
+ background: var(--ref-color-grey-10);
40
40
  }
41
41
 
42
42
  &:focus:not(:disabled):not(:active) {
@@ -47,7 +47,7 @@
47
47
  pointer-events: none;
48
48
 
49
49
  > i {
50
- color: var(--comp-button-ghost-grey-content-disabled);
50
+ color: var(--ref-color-grey-20);
51
51
  }
52
52
  }
53
53
 
@@ -108,33 +108,33 @@
108
108
 
109
109
  // Stroked variant
110
110
  &.stroked {
111
- border: 1px solid var(--comp-button-tertiary-grey-border-default);
112
- background: var(--comp-button-tertiary-filled-surface);
111
+ border: 1px solid var(--ref-color-grey-20);
112
+ background: var(--ref-color-white);
113
113
 
114
114
  &:hover:not(.locked):not(:disabled) {
115
- border-color: var(--comp-button-tertiary-grey-border-hovered);
115
+ border-color: var(--ref-color-grey-40);
116
116
  }
117
117
 
118
118
  &:active:not(.locked):not(:disabled) {
119
- border-color: var(--comp-button-tertiary-grey-border-clicked);
119
+ border-color: var(--ref-color-grey-60);
120
120
  }
121
121
 
122
122
  &:disabled {
123
- border-color: var(--comp-button-tertiary-grey-border-disabled);
123
+ border-color: var(--ref-color-grey-20);
124
124
  }
125
125
 
126
126
  // Stroked color variants
127
127
  &.blue:not(.loading):not(.locked) {
128
- border-color: var(--comp-button-tertiary-blue-border-default);
128
+ border-color: var(--ref-color-electric-blue-100);
129
129
 
130
130
  &:hover:not(:disabled) {
131
- border-color: var(--comp-button-tertiary-blue-border-hovered);
131
+ border-color: var(--ref-color-electric-blue-60);
132
132
  }
133
133
  &:active:not(:disabled) {
134
- border-color: var(--comp-button-tertiary-blue-border-clicked);
134
+ border-color: var(--ref-color-electric-blue-100);
135
135
  }
136
136
  &:disabled {
137
- border-color: var(--comp-button-tertiary-blue-border-disabled);
137
+ border-color: var(--ref-color-electric-blue-20);
138
138
  }
139
139
  }
140
140
 
@@ -153,16 +153,16 @@
153
153
  }
154
154
 
155
155
  &.red:not(.loading):not(.locked) {
156
- border-color: var(--comp-button-tertiary-red-border-default);
156
+ border-color: var(--ref-color-red-100);
157
157
 
158
158
  &:hover:not(:disabled) {
159
- border-color: var(--comp-button-tertiary-red-border-hovered);
159
+ border-color: var(--ref-color-red-60);
160
160
  }
161
161
  &:active:not(:disabled) {
162
- border-color: var(--comp-button-tertiary-red-border-clicked);
162
+ border-color: var(--ref-color-red-100);
163
163
  }
164
164
  &:disabled {
165
- border-color: var(--comp-button-tertiary-red-border-disabled);
165
+ border-color: var(--ref-color-red-20);
166
166
  }
167
167
  }
168
168
  }
@@ -181,22 +181,20 @@
181
181
 
182
182
  // Locked state — reuses .ap-locked-symbol from _button.scss
183
183
  &.locked {
184
- background: var(--comp-button-featurelock-surface-default);
185
- border: 1px solid var(--comp-button-featurelock-border-default);
184
+ background: var(--ref-color-purple-10);
185
+ border: 1px solid var(--ref-color-purple-20);
186
186
  overflow: visible;
187
187
 
188
188
  > i {
189
- color: var(--comp-button-featurelock-content);
189
+ color: var(--ref-color-purple-100);
190
190
  }
191
191
 
192
192
  &:hover {
193
- background: var(--comp-button-featurelock-surface-hovered);
194
- border-color: var(--comp-button-featurelock-border-hovered);
193
+ border-color: var(--ref-color-purple-40);
195
194
  }
196
195
 
197
196
  &:active {
198
- background: var(--comp-button-featurelock-surface-clicked);
199
- border-color: var(--comp-button-featurelock-border-clicked);
197
+ border-color: var(--ref-color-purple-60);
200
198
  }
201
199
  }
202
200
  }
@@ -6,12 +6,15 @@
6
6
  display: flex;
7
7
  width: 100%;
8
8
  max-width: 100%;
9
- @include m.text-style('body');
9
+ font-size: var(--ref-font-size-sm);
10
+ line-height: var(--ref-font-line-height-sm);
10
11
  align-items: flex-start;
11
- color: var(--sys-color-text-default);
12
- padding: var(--ref-spacing-xs) var(--ref-spacing-xs) var(--ref-spacing-xs) var(--ref-spacing-sm);
13
- border-radius: var(--sys-radius-inner);
12
+ color: var(--ref-color-grey-100);
13
+ padding: var(--comp-infobox-padding-top) var(--comp-infobox-padding-right) var(--comp-infobox-padding-bottom)
14
+ var(--comp-infobox-padding-left);
15
+ border-radius: var(--comp-infobox-border-radius);
14
16
  overflow: hidden;
17
+ font-family: var(--comp-infobox-text-title-font-family);
15
18
  box-sizing: border-box;
16
19
  position: relative;
17
20
  gap: var(--ref-spacing-xs);
@@ -22,7 +25,7 @@
22
25
  position: absolute;
23
26
  left: 0;
24
27
  top: 0;
25
- width: var(--ref-spacing-xxxs);
28
+ width: var(--comp-infobox-border-width, 4px);
26
29
  height: 100%;
27
30
  }
28
31
 
@@ -43,18 +46,53 @@
43
46
  }
44
47
 
45
48
  // Variants — expected icons: ap-icon-info_fill, ap-icon-warning_fill, ap-icon-error_fill, ap-icon-rounded-check_fill, ap-icon-feature-lock
46
- // The class names predate the token names, hence the two spellings per pair.
47
- @each $variant, $role in (('info', 'information'), ('warning', 'warning'), ('error', 'error'), ('success', 'success'), ('feature-lock', 'featurelock')) {
48
- &.#{$variant} {
49
- background-color: var(--sys-color-surface-#{$role});
50
-
51
- > i {
52
- color: var(--sys-color-icon-#{$role});
53
- }
54
-
55
- &::before {
56
- background-color: var(--sys-color-border-#{$role});
57
- }
49
+ &.info {
50
+ background-color: var(--comp-infobox-info-background-color);
51
+ > i {
52
+ color: var(--comp-infobox-info-icon-color);
53
+ }
54
+ &::before {
55
+ background-color: var(--comp-infobox-info-border-left-color);
56
+ }
57
+ }
58
+
59
+ &.warning {
60
+ background-color: var(--comp-infobox-warning-background-color);
61
+ > i {
62
+ color: var(--comp-infobox-warning-icon-color);
63
+ }
64
+ &::before {
65
+ background-color: var(--comp-infobox-warning-border-left-color);
66
+ }
67
+ }
68
+
69
+ &.error {
70
+ background-color: var(--comp-infobox-error-background-color);
71
+ > i {
72
+ color: var(--comp-infobox-error-icon-color);
73
+ }
74
+ &::before {
75
+ background-color: var(--comp-infobox-error-border-left-color);
76
+ }
77
+ }
78
+
79
+ &.success {
80
+ background-color: var(--comp-infobox-success-background-color);
81
+ > i {
82
+ color: var(--comp-infobox-success-icon-color);
83
+ }
84
+ &::before {
85
+ background-color: var(--comp-infobox-success-border-left-color);
86
+ }
87
+ }
88
+
89
+ &.feature-lock {
90
+ background-color: var(--comp-infobox-feature-lock-background-color);
91
+ > i {
92
+ color: var(--comp-infobox-feature-lock-icon-color);
93
+ }
94
+ &::before {
95
+ background-color: var(--comp-infobox-feature-lock-border-left-color);
58
96
  }
59
97
  }
60
98
  }
@@ -84,12 +122,18 @@
84
122
 
85
123
  // Title
86
124
  .ap-infobox-title {
87
- @include m.text-style('h3');
125
+ font-weight: var(--comp-infobox-text-title-weight);
126
+ font-family: var(--comp-infobox-text-title-font-family);
127
+ font-size: var(--comp-infobox-text-title-size);
128
+ line-height: var(--comp-infobox-text-title-line-height);
88
129
  }
89
130
 
90
131
  // Message/Body text
91
132
  .ap-infobox-message {
92
- @include m.text-style('body');
133
+ font-weight: var(--comp-infobox-text-content-weight);
134
+ font-family: var(--comp-infobox-text-content-font-family);
135
+ font-size: var(--comp-infobox-text-content-size);
136
+ line-height: var(--comp-infobox-text-content-line-height);
93
137
  }
94
138
 
95
139
  // Close button
@@ -97,11 +141,11 @@
97
141
  display: flex;
98
142
  justify-content: center;
99
143
  align-items: center;
100
- @include m.fixed-size(20px);
144
+ @include m.fixed-size(var(--comp-close-button-size));
101
145
  border-radius: 50%;
102
146
  background: transparent;
103
147
  border: none;
104
- padding: 0;
148
+ padding: var(--comp-close-button-padding);
105
149
  cursor: pointer;
106
150
  flex-shrink: 0;
107
151
  transition: background 0.25s;
@@ -113,15 +157,14 @@
113
157
  }
114
158
 
115
159
  &:hover {
116
- background: var(--sys-color-surface-interactive-hovered);
160
+ background: var(--comp-close-button-hover-background);
117
161
  }
118
162
 
119
163
  &:active {
120
- background: var(--sys-color-surface-interactive-clicked);
164
+ background: var(--comp-close-button-active-background);
121
165
  }
122
166
 
123
- // Close icon (implicit > i). The infobox frame still binds the V2 grey here, so this
124
- // deliberately overrides the helper's neutral glyph; flagged for design.
167
+ // Close icon (implicit > i)
125
168
  > i {
126
169
  color: var(--ref-color-grey-80);
127
170
  }
@@ -11,7 +11,7 @@
11
11
  // Label — implicit > label
12
12
  > label {
13
13
  @include m.text-style('body');
14
- color: var(--comp-forms-label-text-color);
14
+ color: var(--ref-color-grey-100);
15
15
  }
16
16
  }
17
17
 
@@ -40,11 +40,6 @@
40
40
  border-color: var(--comp-input-border-hover-color);
41
41
  }
42
42
 
43
- // Pressed state
44
- &:active:not(:has(input:disabled)) {
45
- border-color: var(--comp-input-border-clicked-color);
46
- }
47
-
48
43
  // Focus state
49
44
  &:focus-within:not(:has(input:disabled)) {
50
45
  border-color: var(--comp-input-border-focused-color);
@@ -5,29 +5,31 @@
5
5
  display: inline-flex;
6
6
  align-items: center;
7
7
  max-width: 100%;
8
- background: var(--sys-color-surface-category-blue);
9
- // Pill: matches the chip height. There is no radius token for it.
10
- border-radius: 24px;
11
- padding: 0 var(--ref-spacing-xxs);
12
- height: var(--sys-height-chip);
8
+ background: var(--comp-label-background-color);
9
+ border-radius: var(--comp-label-border-radius);
10
+ padding: 0 var(--comp-label-padding-right) 0 var(--comp-label-padding-left);
11
+ height: var(--comp-label-height);
13
12
  box-sizing: border-box;
14
13
  border: none;
15
14
 
16
15
  // Text styles on container (span optional)
17
- color: var(--sys-color-text-default);
18
- @include m.text-style('body');
16
+ color: var(--comp-label-text-color);
17
+ font-family: var(--comp-label-text-style-font-family);
18
+ font-size: var(--comp-label-text-style-size);
19
+ font-weight: var(--comp-label-text-style-font-weight);
20
+ line-height: var(--comp-label-text-style-line-height);
19
21
  white-space: nowrap;
20
22
  text-decoration: none;
21
23
 
22
24
  // Auto-detect icon — add gap
23
25
  &:has(> i) {
24
- gap: var(--sys-spacing-inline-icon-small);
26
+ gap: var(--comp-label-closable-spacing);
25
27
  }
26
28
 
27
29
  // Auto-detect close button — tighter padding + gap
28
30
  &:has(> button) {
29
- gap: var(--sys-spacing-inline-icon-small);
30
- padding: 0 2px 0 var(--ref-spacing-xxs);
31
+ gap: var(--comp-label-closable-spacing);
32
+ padding: 0 var(--comp-label-closable-padding-right) 0 var(--ref-spacing-xxs);
31
33
  }
32
34
 
33
35
  // Text truncation — use > span when combined with a close button
@@ -48,18 +50,17 @@
48
50
  align-items: center;
49
51
  justify-content: center;
50
52
  flex-shrink: 0;
51
- width: calc(var(--sys-height-chip) - 4px);
52
- height: calc(var(--sys-height-chip) - 4px);
53
- min-width: calc(var(--sys-height-chip) - 4px);
53
+ width: calc(var(--comp-label-height) - 4px);
54
+ height: calc(var(--comp-label-height) - 4px);
55
+ min-width: calc(var(--comp-label-height) - 4px);
54
56
  border: none;
55
57
  background: transparent;
56
58
  border-radius: 50%;
57
59
  cursor: pointer;
58
60
  padding: 0;
59
- color: var(--sys-color-text-default);
61
+ color: var(--comp-label-text-color);
60
62
  transition: background-color 0.15s;
61
63
 
62
- // Not in the spec — no token covers the clear button's own states.
63
64
  &:hover {
64
65
  background: var(--ref-color-electric-blue-40);
65
66
  }