@agorapulse/ui-theme 22.0.0 → 22.0.2-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 (58) hide show
  1. package/agorapulse-ui-theme-22.0.2-beta.1.tgz +0 -0
  2. package/assets/desktop_variables.css +457 -538
  3. package/assets/mobile_variables.css +457 -538
  4. package/assets/style/_button-mixins.scss +92 -33
  5. package/assets/style/_link.scss +35 -31
  6. package/assets/style/_select.scss +69 -65
  7. package/assets/style/_tooltip.scss +21 -21
  8. package/assets/style/components-custom-style/_input.scss +28 -18
  9. package/assets/style/css-ui/_action-dropdown.scss +21 -16
  10. package/assets/style/css-ui/_badge.scss +12 -11
  11. package/assets/style/css-ui/_button.scss +95 -17
  12. package/assets/style/css-ui/_checkbox.scss +35 -32
  13. package/assets/style/css-ui/_counter.scss +30 -29
  14. package/assets/style/css-ui/_icon-button.scss +62 -16
  15. package/assets/style/css-ui/_input.scss +39 -27
  16. package/assets/style/css-ui/_label.scss +14 -17
  17. package/assets/style/css-ui/_link.scss +36 -31
  18. package/assets/style/css-ui/_radio-card.scss +26 -18
  19. package/assets/style/css-ui/_radio.scss +37 -23
  20. package/assets/style/css-ui/_select.scss +84 -71
  21. package/assets/style/css-ui/_selection-dropdown.scss +57 -20
  22. package/assets/style/css-ui/_snackbar.scss +2 -2
  23. package/assets/style/css-ui/_split-button.scss +14 -4
  24. package/assets/style/css-ui/_status.scss +29 -26
  25. package/assets/style/css-ui/_tabs.scss +64 -56
  26. package/assets/style/css-ui/_tag.scss +43 -45
  27. package/assets/style/css-ui/_textarea.scss +30 -24
  28. package/assets/style/css-ui/_toggle.scss +30 -21
  29. package/assets/style/css-ui/_tooltip.scss +16 -17
  30. package/assets/style/css-ui/index.css +620 -543
  31. package/assets/style/css-ui/index.css.map +1 -1
  32. package/package.json +1 -1
  33. package/src/build.js +3 -1
  34. package/src/desktop_config.js +2 -1
  35. package/src/formats.js +36 -0
  36. package/src/mobile_config.js +2 -1
  37. package/src/tokens/components/button.json +1 -1
  38. package/src/tokens/components/icon-button.json +1 -1
  39. package/src/tokens/reference/animation.json +5 -0
  40. package/src/tokens/system/color-border.json +78 -0
  41. package/src/tokens/system/color-icon.json +78 -0
  42. package/src/tokens/system/color-link.json +23 -0
  43. package/src/tokens/system/color-surface.json +120 -0
  44. package/src/tokens/system/color-text.json +78 -0
  45. package/src/tokens/system/height.json +15 -0
  46. package/src/tokens/system/motion.json +12 -0
  47. package/src/tokens/system/radius.json +12 -0
  48. package/src/tokens/system/spacing.json +25 -0
  49. package/agorapulse-ui-theme-22.0.0.tgz +0 -0
  50. package/src/tokens/components/badge.json +0 -53
  51. package/src/tokens/components/counter.json +0 -108
  52. package/src/tokens/components/label.json +0 -56
  53. package/src/tokens/components/link.json +0 -127
  54. package/src/tokens/components/status-card.json +0 -187
  55. package/src/tokens/components/status.json +0 -129
  56. package/src/tokens/components/tabs.json +0 -136
  57. package/src/tokens/components/tag.json +0 -194
  58. package/src/tokens/components/tooltip.json +0 -36
@@ -1,13 +1,17 @@
1
+ // The closed field takes the input's treatment and the panel takes the dropdown's
2
+ // (V2 Style Guide - Tokens, nodes 1207:11220 and 1204:10802). No pressed shade on the
3
+ // field: clicking it opens the panel, so `.ng-select-opened` takes over immediately and
4
+ // a separate `:active` colour would never be seen.
1
5
  .ng-select.ap-select {
2
6
  font-family: var(--sys-text-style-body-font-family);
3
7
  .ng-select-container {
4
- border-color: var(--ref-color-grey-20);
8
+ border-color: var(--sys-color-border-input-default);
5
9
  padding: 0 var(--ref-spacing-xs);
6
10
  gap: var(--ref-spacing-xxs);
7
11
  &:hover {
8
12
  box-shadow: none;
9
13
  cursor: pointer;
10
- border-color: var(--ref-color-grey-40) !important;
14
+ border-color: var(--sys-color-border-input-hovered) !important;
11
15
  }
12
16
 
13
17
  .ng-value-container {
@@ -33,13 +37,13 @@
33
37
 
34
38
  &.valid {
35
39
  .ng-select-container {
36
- border-color: var(--comp-input-border-success-color);
40
+ border-color: var(--sys-color-border-success);
37
41
  }
38
42
  }
39
43
 
40
44
  &.ng-invalid.ng-dirty.ng-touched {
41
45
  .ng-select-container {
42
- border-color: var(--comp-input-border-error-color);
46
+ border-color: var(--sys-color-border-error);
43
47
  }
44
48
  }
45
49
 
@@ -47,20 +51,20 @@
47
51
  &.ng-select-bottom,
48
52
  &.ng-select-top {
49
53
  .ng-select-container {
50
- border-radius: var(--ref-border-radius-sm);
51
- border-color: var(--ref-color-grey-20);
54
+ border-radius: var(--sys-radius-inner);
55
+ border-color: var(--sys-color-border-input-default);
52
56
  }
53
57
  }
54
58
 
55
59
  .ng-arrow {
56
- border-color: transparent transparent var(--ref-color-electric-blue-100);
60
+ border-color: transparent transparent var(--sys-color-icon-interactive-active);
57
61
  }
58
62
 
59
63
  .ng-select-container {
60
64
  &:hover {
61
- border-color: var(--ref-color-electric-blue-100) !important;
65
+ border-color: var(--sys-color-border-input-active) !important;
62
66
  }
63
- border-color: var(--ref-color-electric-blue-100) !important;
67
+ border-color: var(--sys-color-border-input-active) !important;
64
68
  }
65
69
  }
66
70
 
@@ -115,18 +119,18 @@
115
119
 
116
120
  &.ng-select-disabled {
117
121
  .ng-select-container {
118
- background-color: var(--ref-color-grey-20);
119
- border-color: var(--ref-color-grey-20);
120
- color: var(--ref-color-grey-100);
122
+ background-color: var(--sys-color-surface-input-disabled);
123
+ border-color: var(--sys-color-border-input-disabled);
124
+ color: var(--sys-color-text-interactive-disabled);
121
125
 
122
126
  &:hover {
123
127
  cursor: default !important;
124
- background-color: var(--ref-color-grey-20) !important;
125
- border-color: var(--ref-color-grey-20) !important;
128
+ background-color: var(--sys-color-surface-input-disabled) !important;
129
+ border-color: var(--sys-color-border-input-disabled) !important;
126
130
  }
127
131
 
128
132
  .ng-placeholder {
129
- color: var(--ref-color-grey-60) !important;
133
+ color: var(--sys-color-text-interactive-disabled) !important;
130
134
  }
131
135
 
132
136
  .ng-value-container {
@@ -140,7 +144,7 @@
140
144
  .inline-label {
141
145
  padding-right: var(--ref-spacing-xxs);
142
146
  border-right: 1px solid var(--comp-select-inline-separator-color);
143
- color: var(--comp-select-inline-label-text-color);
147
+ color: var(--sys-color-text-secondary);
144
148
  }
145
149
 
146
150
  ap-symbol.inline-symbol {
@@ -150,7 +154,7 @@
150
154
  min-width: var(--comp-input-icon-size);
151
155
  max-height: var(--comp-input-icon-size);
152
156
  max-width: var(--comp-input-icon-size);
153
- color: var(--comp-input-icon-color);
157
+ color: var(--sys-color-text-subtle);
154
158
  pointer-events: none;
155
159
  box-sizing: content-box;
156
160
 
@@ -165,7 +169,7 @@
165
169
  position: relative;
166
170
 
167
171
  .ng-placeholder {
168
- color: var(--ref-color-grey-60);
172
+ color: var(--sys-color-text-subtle);
169
173
  font-family: var(--sys-text-style-body-font-family);
170
174
  font-weight: var(--sys-text-style-body-weight);
171
175
  font-size: var(--sys-text-style-body-size);
@@ -182,7 +186,7 @@
182
186
  }
183
187
 
184
188
  .text-item {
185
- color: var(--ref-color-grey-100);
189
+ color: var(--sys-color-text-default);
186
190
  font-size: var(--ref-font-size-sm);
187
191
  line-height: var(--ref-font-line-height-sm);
188
192
  }
@@ -196,7 +200,7 @@
196
200
 
197
201
  .ng-value {
198
202
  margin: 0 !important;
199
- color: var(--ref-color-grey-100);
203
+ color: var(--sys-color-text-default);
200
204
  font-weight: var(--sys-text-style-body-weight);
201
205
  font-size: var(--sys-text-style-body-size);
202
206
  line-height: var(--sys-text-style-body-line-height);
@@ -209,8 +213,8 @@
209
213
 
210
214
  input {
211
215
  height: 100%;
212
- color: var(--ref-color-grey-100) !important;
213
- caret-color: var(--ref-color-grey-100) !important;
216
+ color: var(--sys-color-text-default) !important;
217
+ caret-color: var(--sys-color-text-default) !important;
214
218
  border-radius: unset;
215
219
  }
216
220
  }
@@ -228,13 +232,13 @@
228
232
 
229
233
  &.with-error {
230
234
  .ng-select-container {
231
- border-color: var(--comp-input-border-error-color);
235
+ border-color: var(--sys-color-border-error);
232
236
  }
233
237
  }
234
238
 
235
239
  &.with-success {
236
240
  .ng-select-container {
237
- border-color: var(--comp-input-border-success-color);
241
+ border-color: var(--sys-color-border-success);
238
242
  }
239
243
  }
240
244
  }
@@ -245,11 +249,11 @@
245
249
  border: none;
246
250
  box-shadow: var(--comp-select-shadow);
247
251
  padding: var(--comp-select-padding-vertical) 0;
248
- background-color: var(--comp-select-background-color);
252
+ background-color: var(--sys-color-surface-default);
249
253
 
250
254
  &.ng-select-bottom {
251
255
  margin-top: var(--ref-spacing-xxxs);
252
- border-radius: var(--ref-border-radius-sm);
256
+ border-radius: var(--sys-radius-inner);
253
257
  }
254
258
 
255
259
  .ng-dropdown-panel-items {
@@ -270,28 +274,28 @@
270
274
  &:hover:not(.ng-option-disabled),
271
275
  &.ng-option-marked:not(.ng-option-disabled) {
272
276
  .option {
273
- background-color: var(--ref-color-electric-blue-10);
277
+ background-color: var(--sys-color-surface-interactive-hovered);
274
278
  }
275
279
  .feature-locked-option {
276
- background-color: var(--ref-color-purple-10);
280
+ background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
277
281
  }
278
282
  }
279
283
 
280
284
  &:active:not(.ng-option-disabled) {
281
285
  .option {
282
- background-color: var(--ref-color-electric-blue-20);
286
+ background-color: var(--sys-color-surface-interactive-clicked);
283
287
  }
284
288
  .feature-locked-option {
285
- background-color: var(--ref-color-purple-20);
289
+ background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
286
290
  }
287
291
  }
288
292
 
289
293
  &:focus:not(.ng-option-disabled) {
290
294
  .option {
291
- background-color: var(--ref-color-electric-blue-20);
295
+ background-color: var(--sys-color-surface-interactive-hovered);
292
296
  }
293
297
  .feature-locked-option {
294
- background-color: var(--ref-color-purple-20);
298
+ background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
295
299
  }
296
300
  }
297
301
 
@@ -307,24 +311,24 @@
307
311
  }
308
312
  &.multiple {
309
313
  .option-item {
310
- color: var(--ref-color-grey-100);
314
+ color: var(--sys-color-text-interactive-default);
311
315
  }
312
316
  }
313
317
 
314
318
  &:not(.multiple) {
315
- background-color: var(--ref-color-electric-blue-10);
316
- color: var(--ref-color-electric-blue-150);
319
+ background-color: var(--sys-color-surface-interactive-active);
320
+ color: var(--sys-color-text-interactive-active);
317
321
  ap-symbol:not(.option-selected) .svg {
318
- color: var(--ref-color-electric-blue-150);
322
+ color: var(--sys-color-icon-interactive-active);
319
323
  }
320
324
  ap-avatar ap-symbol:not(.option-selected) .svg {
321
325
  color: inherit;
322
326
  }
323
327
  .label {
324
- color: var(--ref-color-electric-blue-150);
328
+ color: var(--sys-color-text-interactive-active);
325
329
  }
326
330
  .caption {
327
- color: var(--ref-color-electric-blue-100);
331
+ color: var(--sys-color-text-interactive-active);
328
332
  }
329
333
  }
330
334
  }
@@ -337,30 +341,30 @@
337
341
  }
338
342
 
339
343
  .feature-locked-option {
340
- background-color: var(--ref-color-purple-10) !important;
344
+ background-color: var(--sys-color-surface-interactive-featurelock-active-hovered) !important;
341
345
  }
342
346
 
343
347
  .option {
344
- background-color: var(--ref-color-electric-blue-10);
348
+ background-color: var(--sys-color-surface-interactive-hovered);
345
349
  span {
346
- color: var(--ref-color-grey-100);
350
+ color: var(--sys-color-text-interactive-default);
347
351
  }
348
352
 
349
353
  .label {
350
- color: var(--ref-color-grey-100);
354
+ color: var(--sys-color-text-interactive-default);
351
355
  }
352
356
 
353
357
  .caption {
354
- color: var(--ref-color-grey-80);
358
+ color: var(--sys-color-text-secondary);
355
359
  }
356
360
 
357
361
  &.multiple {
358
362
  .label {
359
- color: var(--ref-color-grey-100);
363
+ color: var(--sys-color-text-interactive-default);
360
364
  }
361
365
 
362
366
  .caption {
363
- color: var(--ref-color-grey-80);
367
+ color: var(--sys-color-text-secondary);
364
368
  }
365
369
  }
366
370
  }
@@ -370,13 +374,13 @@
370
374
  }
371
375
 
372
376
  &.ng-option-disabled {
373
- color: var(--ref-color-grey-40);
377
+ color: var(--sys-color-text-interactive-disabled);
374
378
 
375
379
  .disabled-opaque {
376
380
  position: absolute;
377
381
  inset: 0;
378
382
  opacity: 0.6;
379
- background-color: var(--ref-color-white);
383
+ background-color: var(--sys-color-surface-default);
380
384
  cursor: default;
381
385
  width: 100%;
382
386
  height: 100%;
@@ -385,7 +389,7 @@
385
389
 
386
390
  &:not(.ng-optgroup):not(:has(.option)) {
387
391
  padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
388
- color: var(--ref-color-grey-80);
392
+ color: var(--sys-color-text-secondary);
389
393
  font-family: var(--comp-select-one-line-text-font-family);
390
394
  font-size: var(--comp-select-one-line-text-size);
391
395
  font-weight: var(--comp-select-one-line-text-font-weight);
@@ -411,7 +415,7 @@
411
415
  line-height: var(--ref-font-line-height-sm);
412
416
  font-style: italic;
413
417
  font-weight: var(--ref-font-weight-regular);
414
- color: var(--ref-color-grey-80);
418
+ color: var(--sys-color-text-secondary);
415
419
  }
416
420
  }
417
421
 
@@ -445,7 +449,7 @@
445
449
  .divider {
446
450
  width: 100%;
447
451
  height: 1px;
448
- background-color: var(--comp-select-separator-color);
452
+ background-color: var(--sys-color-border-default);
449
453
  margin: var(--ref-spacing-xxs) 0;
450
454
  }
451
455
 
@@ -455,8 +459,8 @@
455
459
  box-sizing: border-box;
456
460
  min-height: var(--comp-select-one-line-height);
457
461
  max-height: var(--comp-select-one-line-height);
458
- color: var(--comp-select-one-line-text-color);
459
- background-color: var(--comp-select-one-line-background-color);
462
+ color: var(--sys-color-text-interactive-default);
463
+ background-color: var(--sys-color-surface-interactive-default);
460
464
  font-family: var(--comp-select-one-line-text-font-family);
461
465
  font-size: var(--comp-select-one-line-text-size);
462
466
  font-weight: var(--comp-select-one-line-text-font-weight);
@@ -476,7 +480,7 @@
476
480
  }
477
481
 
478
482
  ap-symbol {
479
- color: var(--comp-select-one-line-text-color);
483
+ color: var(--sys-color-icon-interactive-default);
480
484
  }
481
485
 
482
486
  .option-item {
@@ -488,7 +492,7 @@
488
492
 
489
493
  &.not-found {
490
494
  padding: var(--ref-spacing-sm) var(--ref-spacing-sm) var(--ref-spacing-xxs) var(--ref-spacing-sm);
491
- color: var(--ref-color-grey-80);
495
+ color: var(--sys-color-text-secondary);
492
496
  font-style: italic;
493
497
  }
494
498
 
@@ -509,7 +513,7 @@
509
513
  font-family: var(--comp-select-two-line-title-text-font-family);
510
514
  font-size: var(--comp-select-two-line-title-text-size);
511
515
  line-height: var(--comp-select-two-line-title-text-line-height);
512
- color: var(--comp-select-two-line-title-text-color);
516
+ color: var(--sys-color-text-interactive-default);
513
517
  }
514
518
 
515
519
  .caption {
@@ -517,7 +521,7 @@
517
521
  font-family: var(--comp-select-two-line-caption-text-font-family);
518
522
  font-size: var(--comp-select-two-line-caption-text-size);
519
523
  line-height: var(--comp-select-two-line-caption-text-line-height);
520
- color: var(--comp-select-two-line-caption-text-color);
524
+ color: var(--sys-color-text-secondary);
521
525
  display: inline-block;
522
526
  overflow: hidden;
523
527
  white-space: nowrap;
@@ -552,11 +556,11 @@
552
556
  display: flex;
553
557
  width: 100%;
554
558
  height: 100%;
555
- background-color: var(--comp-select-group-background-color);
559
+ background-color: var(--sys-color-surface-secondary);
556
560
  min-height: 32px;
557
561
  box-sizing: border-box;
558
562
  padding: var(--comp-select-group-padding-vertical) var(--comp-select-group-padding-horizontal);
559
- border-top: 1px solid var(--comp-select-group-border-top-color);
563
+ border-top: 1px solid var(--sys-color-border-default);
560
564
 
561
565
  .group-label {
562
566
  white-space: initial;
@@ -564,7 +568,7 @@
564
568
  font-size: var(--comp-select-group-text-size);
565
569
  line-height: var(--comp-select-group-text-line-height);
566
570
  font-family: var(--comp-select-group-text-font-family);
567
- color: var(--comp-select-group-text-color);
571
+ color: var(--sys-color-text-default);
568
572
  }
569
573
  }
570
574
  }
@@ -574,7 +578,7 @@
574
578
  margin-bottom: var(--ref-spacing-xxs);
575
579
  padding: 0 var(--comp-select-search-bar-padding-horizontal) var(--comp-select-search-bar-margin-bottom)
576
580
  var(--comp-select-search-bar-padding-horizontal);
577
- border-bottom: 1px solid var(--comp-select-search-bar-border-bottom-color);
581
+ border-bottom: 1px solid var(--sys-color-border-default);
578
582
 
579
583
  .select-all-checkbox {
580
584
  padding-left: var(--ref-spacing-xxs);
@@ -586,11 +590,11 @@
586
590
  cursor: pointer;
587
591
  padding: 0;
588
592
  margin-top: var(--ref-spacing-xxxs);
589
- border-top: 1px solid var(--ref-color-grey-10);
593
+ border-top: 1px solid var(--sys-color-border-default);
590
594
  }
591
595
 
592
596
  .standalone-link {
593
- color: var(--ref-color-electric-blue-150);
597
+ color: var(--sys-color-link-default);
594
598
  font-weight: var(--ref-font-weight-bold);
595
599
  font-family: var(--ref-font-family);
596
600
  background-color: transparent;
@@ -602,11 +606,11 @@
602
606
  display: none;
603
607
 
604
608
  &:hover {
605
- color: var(--ref-color-electric-blue-100);
609
+ color: var(--sys-color-link-hovered);
606
610
  }
607
611
 
608
612
  &:active {
609
- color: var(--ref-color-electric-blue-150);
613
+ color: var(--sys-color-link-clicked);
610
614
  }
611
615
  }
612
616
  }
@@ -618,7 +622,7 @@
618
622
  // Pinned items are moved to the top of the panel via `apSelectMultiple`.
619
623
  // The boundary is the first unpinned option that follows a pinned one.
620
624
  .ng-dropdown-panel .ap-option-pinned + .ng-option:not(.ap-option-pinned) {
621
- border-top: 1px solid var(--ref-color-grey-10);
625
+ border-top: 1px solid var(--sys-color-border-default);
622
626
  margin-top: var(--ref-spacing-xxs);
623
627
  padding-top: var(--ref-spacing-xxs);
624
628
  }
@@ -6,8 +6,12 @@
6
6
 
7
7
  width: fit-content;
8
8
  max-width: 350px;
9
- background: var(--comp-tooltip-text-color-main-default-bg);
10
- border-radius: var(--ref-border-radius-md);
9
+ background: var(--sys-color-surface-default);
10
+ border-radius: var(--sys-radius-inner);
11
+ // Shadow/Low (default) — the sys layer has no elevation token yet.
12
+ box-shadow:
13
+ 0 4px 6px -2px rgba(52, 69, 99, 0.15),
14
+ 0 4px 25px -2px rgba(52, 69, 99, 0.15);
11
15
  // Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
12
16
  position: fixed;
13
17
  z-index: var(--ap-tooltip-z-index);
@@ -26,17 +30,14 @@
26
30
  max-width: 256px;
27
31
  width: 256px;
28
32
  max-height: 280px;
29
- border-radius: var(--ref-border-radius-sm);
30
- background: var(--ref-color-white);
31
-
32
- /* Shadow/Low (default) */
33
- box-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15);
33
+ border-radius: var(--sys-radius-inner);
34
+ background: var(--sys-color-surface-default);
34
35
 
35
36
  .ap-content-container.ap-content-predefined-container {
36
37
  padding: 0;
37
38
 
38
39
  .ap-tooltip-arrow {
39
- color: var(--ref-color-white);
40
+ color: var(--sys-color-surface-default);
40
41
  }
41
42
  }
42
43
  }
@@ -46,19 +47,19 @@
46
47
  }
47
48
 
48
49
  .ap-content-container {
49
- padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
50
- border-radius: var(--ref-border-radius-md);
50
+ padding: var(--sys-spacing-container-sm) var(--sys-spacing-container-md);
51
+ border-radius: var(--sys-radius-inner);
51
52
 
52
53
  .ap-tooltip-text {
53
- color: var(--comp-tooltip-text-default-color);
54
- font-family: var(--comp-tooltip-text-style-font-family);
55
- font-size: var(--comp-tooltip-text-style-size);
56
- font-weight: var(--comp-tooltip-text-style-weight);
57
- line-height: var(--comp-tooltip-text-style-line-height);
54
+ color: var(--sys-color-text-default);
55
+ font-family: var(--sys-text-style-body-font-family);
56
+ font-size: var(--sys-text-style-body-size);
57
+ font-weight: var(--sys-text-style-body-weight);
58
+ line-height: var(--sys-text-style-body-line-height);
58
59
  }
59
60
 
60
61
  .ap-tooltip-arrow {
61
- color: var(--ref-color-grey-100);
62
+ color: var(--sys-color-surface-default);
62
63
  position: absolute;
63
64
  z-index: 10000;
64
65
  width: var(--ap-arrow-width);
@@ -139,16 +140,15 @@
139
140
  }
140
141
  }
141
142
 
143
+ // Same surface and shadow as the base tooltip now — the design no longer
144
+ // distinguishes them by colour.
142
145
  &.ap-tooltip-custom-template {
143
- background-color: var(--ref-color-white);
144
- filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
145
-
146
146
  .ap-tooltip-text {
147
- color: var(--ref-color-grey-100);
147
+ color: var(--sys-color-text-default);
148
148
  }
149
149
 
150
150
  .ap-tooltip-arrow {
151
- color: var(--ref-color-white);
151
+ color: var(--sys-color-surface-default);
152
152
  position: absolute;
153
153
  z-index: 10000;
154
154
  width: var(--ap-arrow-width);
@@ -19,36 +19,46 @@ form.full-width {
19
19
  }
20
20
  }
21
21
 
22
+ // Bare `input` and `textarea` elements. The design treats them identically, and this
23
+ // block is the one that decides the rendering: its five stacked `:not()`s out-specify
24
+ // both the CSS-UI and the Angular component layers, so the semantic `input/*` matrix
25
+ // has to land here too (V2 Style Guide - Tokens, node 1207:11220).
22
26
  input,
23
27
  textarea {
24
- border: 1px solid var(--comp-input-border-default-color);
25
- border-radius: var(--comp-input-border-radius);
26
- color: var(--comp-input-text-default-color);
28
+ border: 1px solid var(--sys-color-border-input-default);
29
+ border-radius: var(--sys-radius-inner);
30
+ color: var(--sys-color-text-default);
27
31
  font-family: var(--comp-input-text-font-family);
28
32
  font-size: var(--comp-input-text-size);
29
33
  font-weight: var(--comp-input-text-font-weight);
30
34
  padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
31
35
 
32
36
  &::placeholder {
33
- color: var(--comp-input-text-placeholder-color);
37
+ color: var(--sys-color-text-subtle);
34
38
  }
35
39
  // Disabled
36
40
  &:disabled {
37
- background-color: var(--comp-input-fill-disabled-color);
38
- color: var(--comp-input-text-disabled-color);
41
+ background-color: var(--sys-color-surface-input-disabled);
42
+ border-color: var(--sys-color-border-input-disabled);
43
+ color: var(--sys-color-text-interactive-disabled);
39
44
  }
40
45
  // Focus
41
- &:focus:not(.transparent) {
42
- border-color: var(--comp-input-border-focused-color);
46
+ &:focus:not(.transparent):not(:active) {
47
+ border-color: var(--sys-color-border-input-active);
48
+ }
49
+ // Pressed
50
+ &:active:not(.transparent):not([disabled]) {
51
+ border-color: var(--sys-color-border-input-clicked);
43
52
  }
44
- // Invalid
45
- &.invalid:not([disabled]):not(.transparent):not(:focus):not(:hover),
46
- &.ng-invalid.ng-dirty.ng-touched:not([disabled]):not(:focus):not(:hover):not(.transparent) {
47
- border: 1px solid var(--comp-input-border-error-color);
53
+ // Invalid — hover, press and focus replace the border, which is why those three
54
+ // states are excluded here rather than the other way round.
55
+ &.invalid:not([disabled]):not(.transparent):not(:focus):not(:hover):not(:active),
56
+ &.ng-invalid.ng-dirty.ng-touched:not([disabled]):not(:focus):not(:hover):not(:active):not(.transparent) {
57
+ border: 1px solid var(--sys-color-border-error);
48
58
  }
49
59
  // Valid
50
- &.valid:not([disabled]):not(:focus):not(:hover):not(.transparent) {
51
- border: 1px solid var(--comp-input-border-success-color);
60
+ &.valid:not([disabled]):not(:focus):not(:hover):not(:active):not(.transparent) {
61
+ border: 1px solid var(--sys-color-border-success);
52
62
  }
53
63
 
54
64
  // Transparent
@@ -62,8 +72,8 @@ textarea {
62
72
  }
63
73
 
64
74
  // Hover
65
- &:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):hover {
66
- border-color: var(--comp-input-border-hover-color);
75
+ &:not(.transparent):not(:focus):not([disabled]):hover {
76
+ border-color: var(--sys-color-border-input-hovered);
67
77
  }
68
78
  }
69
79
 
@@ -108,8 +118,8 @@ form.submitted {
108
118
  input,
109
119
  textarea {
110
120
  // Invalid
111
- &.ng-invalid:not([disabled]):not(.transparent) {
112
- border: 1px solid var(--comp-input-border-error-color);
121
+ &.ng-invalid:not([disabled]):not(.transparent):not(:hover):not(:active):not(:focus) {
122
+ border: 1px solid var(--sys-color-border-error);
113
123
  }
114
124
  }
115
125
  }