@agorapulse/ui-theme 22.0.1 → 22.0.3-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.3-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +457 -538
- package/assets/mobile_variables.css +457 -538
- package/assets/style/_button-mixins.scss +92 -33
- package/assets/style/_link.scss +35 -31
- package/assets/style/_select.scss +70 -69
- package/assets/style/_tooltip.scss +21 -21
- package/assets/style/components-custom-style/_input.scss +28 -18
- package/assets/style/css-ui/_action-dropdown.scss +21 -16
- package/assets/style/css-ui/_badge.scss +12 -11
- package/assets/style/css-ui/_button.scss +95 -17
- package/assets/style/css-ui/_checkbox.scss +35 -32
- package/assets/style/css-ui/_counter.scss +30 -29
- package/assets/style/css-ui/_icon-button.scss +62 -16
- package/assets/style/css-ui/_input.scss +39 -27
- package/assets/style/css-ui/_label.scss +14 -17
- package/assets/style/css-ui/_link.scss +36 -31
- package/assets/style/css-ui/_radio-card.scss +26 -18
- package/assets/style/css-ui/_radio.scss +37 -23
- package/assets/style/css-ui/_select.scss +84 -71
- package/assets/style/css-ui/_selection-dropdown.scss +57 -20
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +14 -4
- package/assets/style/css-ui/_status.scss +29 -26
- package/assets/style/css-ui/_tabs.scss +64 -56
- package/assets/style/css-ui/_tag.scss +43 -45
- package/assets/style/css-ui/_textarea.scss +30 -24
- package/assets/style/css-ui/_toggle.scss +30 -21
- package/assets/style/css-ui/_tooltip.scss +16 -17
- package/assets/style/css-ui/index.css +620 -543
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +3 -1
- package/src/desktop_config.js +2 -1
- package/src/formats.js +36 -0
- package/src/mobile_config.js +2 -1
- package/src/tokens/components/button.json +1 -1
- package/src/tokens/components/icon-button.json +1 -1
- package/src/tokens/reference/animation.json +5 -0
- package/src/tokens/system/color-border.json +78 -0
- package/src/tokens/system/color-icon.json +78 -0
- package/src/tokens/system/color-link.json +23 -0
- package/src/tokens/system/color-surface.json +120 -0
- package/src/tokens/system/color-text.json +78 -0
- package/src/tokens/system/height.json +15 -0
- package/src/tokens/system/motion.json +12 -0
- package/src/tokens/system/radius.json +12 -0
- package/src/tokens/system/spacing.json +25 -0
- package/agorapulse-ui-theme-22.0.1.tgz +0 -0
- package/src/tokens/components/badge.json +0 -53
- package/src/tokens/components/counter.json +0 -108
- package/src/tokens/components/label.json +0 -56
- package/src/tokens/components/link.json +0 -127
- package/src/tokens/components/status-card.json +0 -187
- package/src/tokens/components/status.json +0 -129
- package/src/tokens/components/tabs.json +0 -136
- package/src/tokens/components/tag.json +0 -194
- 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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
51
|
-
border-color: var(--
|
|
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(--
|
|
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(--
|
|
65
|
+
border-color: var(--sys-color-border-input-active) !important;
|
|
62
66
|
}
|
|
63
|
-
border-color: var(--
|
|
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(--
|
|
119
|
-
border-color: var(--
|
|
120
|
-
color: var(--
|
|
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(--
|
|
125
|
-
border-color: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
213
|
-
caret-color: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
256
|
+
border-radius: var(--sys-radius-inner);
|
|
253
257
|
}
|
|
254
258
|
|
|
255
259
|
.ng-dropdown-panel-items {
|
|
@@ -267,34 +271,31 @@
|
|
|
267
271
|
padding-left: 0;
|
|
268
272
|
}
|
|
269
273
|
|
|
270
|
-
|
|
271
|
-
// source: the browser keeps it on the element it was last resolved against, so a
|
|
272
|
-
// keyboard-driven scroll leaves a phantom background behind, and JS cannot clear it.
|
|
273
|
-
// ng-select marks on `mouseover`, so real hovering still highlights.
|
|
274
|
+
&:hover:not(.ng-option-disabled),
|
|
274
275
|
&.ng-option-marked:not(.ng-option-disabled) {
|
|
275
276
|
.option {
|
|
276
|
-
background-color: var(--
|
|
277
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
277
278
|
}
|
|
278
279
|
.feature-locked-option {
|
|
279
|
-
background-color: var(--
|
|
280
|
+
background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
|
|
280
281
|
}
|
|
281
282
|
}
|
|
282
283
|
|
|
283
284
|
&:active:not(.ng-option-disabled) {
|
|
284
285
|
.option {
|
|
285
|
-
background-color: var(--
|
|
286
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
286
287
|
}
|
|
287
288
|
.feature-locked-option {
|
|
288
|
-
background-color: var(--
|
|
289
|
+
background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
|
|
292
293
|
&:focus:not(.ng-option-disabled) {
|
|
293
294
|
.option {
|
|
294
|
-
background-color: var(--
|
|
295
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
295
296
|
}
|
|
296
297
|
.feature-locked-option {
|
|
297
|
-
background-color: var(--
|
|
298
|
+
background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
|
|
298
299
|
}
|
|
299
300
|
}
|
|
300
301
|
|
|
@@ -310,24 +311,24 @@
|
|
|
310
311
|
}
|
|
311
312
|
&.multiple {
|
|
312
313
|
.option-item {
|
|
313
|
-
color: var(--
|
|
314
|
+
color: var(--sys-color-text-interactive-default);
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
&:not(.multiple) {
|
|
318
|
-
background-color: var(--
|
|
319
|
-
color: var(--
|
|
319
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
320
|
+
color: var(--sys-color-text-interactive-active);
|
|
320
321
|
ap-symbol:not(.option-selected) .svg {
|
|
321
|
-
color: var(--
|
|
322
|
+
color: var(--sys-color-icon-interactive-active);
|
|
322
323
|
}
|
|
323
324
|
ap-avatar ap-symbol:not(.option-selected) .svg {
|
|
324
325
|
color: inherit;
|
|
325
326
|
}
|
|
326
327
|
.label {
|
|
327
|
-
color: var(--
|
|
328
|
+
color: var(--sys-color-text-interactive-active);
|
|
328
329
|
}
|
|
329
330
|
.caption {
|
|
330
|
-
color: var(--
|
|
331
|
+
color: var(--sys-color-text-interactive-active);
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
}
|
|
@@ -340,30 +341,30 @@
|
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
.feature-locked-option {
|
|
343
|
-
background-color: var(--
|
|
344
|
+
background-color: var(--sys-color-surface-interactive-featurelock-active-hovered) !important;
|
|
344
345
|
}
|
|
345
346
|
|
|
346
347
|
.option {
|
|
347
|
-
background-color: var(--
|
|
348
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
348
349
|
span {
|
|
349
|
-
color: var(--
|
|
350
|
+
color: var(--sys-color-text-interactive-default);
|
|
350
351
|
}
|
|
351
352
|
|
|
352
353
|
.label {
|
|
353
|
-
color: var(--
|
|
354
|
+
color: var(--sys-color-text-interactive-default);
|
|
354
355
|
}
|
|
355
356
|
|
|
356
357
|
.caption {
|
|
357
|
-
color: var(--
|
|
358
|
+
color: var(--sys-color-text-secondary);
|
|
358
359
|
}
|
|
359
360
|
|
|
360
361
|
&.multiple {
|
|
361
362
|
.label {
|
|
362
|
-
color: var(--
|
|
363
|
+
color: var(--sys-color-text-interactive-default);
|
|
363
364
|
}
|
|
364
365
|
|
|
365
366
|
.caption {
|
|
366
|
-
color: var(--
|
|
367
|
+
color: var(--sys-color-text-secondary);
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
}
|
|
@@ -373,13 +374,13 @@
|
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
&.ng-option-disabled {
|
|
376
|
-
color: var(--
|
|
377
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
377
378
|
|
|
378
379
|
.disabled-opaque {
|
|
379
380
|
position: absolute;
|
|
380
381
|
inset: 0;
|
|
381
382
|
opacity: 0.6;
|
|
382
|
-
background-color: var(--
|
|
383
|
+
background-color: var(--sys-color-surface-default);
|
|
383
384
|
cursor: default;
|
|
384
385
|
width: 100%;
|
|
385
386
|
height: 100%;
|
|
@@ -388,7 +389,7 @@
|
|
|
388
389
|
|
|
389
390
|
&:not(.ng-optgroup):not(:has(.option)) {
|
|
390
391
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
391
|
-
color: var(--
|
|
392
|
+
color: var(--sys-color-text-secondary);
|
|
392
393
|
font-family: var(--comp-select-one-line-text-font-family);
|
|
393
394
|
font-size: var(--comp-select-one-line-text-size);
|
|
394
395
|
font-weight: var(--comp-select-one-line-text-font-weight);
|
|
@@ -414,7 +415,7 @@
|
|
|
414
415
|
line-height: var(--ref-font-line-height-sm);
|
|
415
416
|
font-style: italic;
|
|
416
417
|
font-weight: var(--ref-font-weight-regular);
|
|
417
|
-
color: var(--
|
|
418
|
+
color: var(--sys-color-text-secondary);
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
421
|
|
|
@@ -448,7 +449,7 @@
|
|
|
448
449
|
.divider {
|
|
449
450
|
width: 100%;
|
|
450
451
|
height: 1px;
|
|
451
|
-
background-color: var(--
|
|
452
|
+
background-color: var(--sys-color-border-default);
|
|
452
453
|
margin: var(--ref-spacing-xxs) 0;
|
|
453
454
|
}
|
|
454
455
|
|
|
@@ -458,8 +459,8 @@
|
|
|
458
459
|
box-sizing: border-box;
|
|
459
460
|
min-height: var(--comp-select-one-line-height);
|
|
460
461
|
max-height: var(--comp-select-one-line-height);
|
|
461
|
-
color: var(--
|
|
462
|
-
background-color: var(--
|
|
462
|
+
color: var(--sys-color-text-interactive-default);
|
|
463
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
463
464
|
font-family: var(--comp-select-one-line-text-font-family);
|
|
464
465
|
font-size: var(--comp-select-one-line-text-size);
|
|
465
466
|
font-weight: var(--comp-select-one-line-text-font-weight);
|
|
@@ -479,7 +480,7 @@
|
|
|
479
480
|
}
|
|
480
481
|
|
|
481
482
|
ap-symbol {
|
|
482
|
-
color: var(--
|
|
483
|
+
color: var(--sys-color-icon-interactive-default);
|
|
483
484
|
}
|
|
484
485
|
|
|
485
486
|
.option-item {
|
|
@@ -491,7 +492,7 @@
|
|
|
491
492
|
|
|
492
493
|
&.not-found {
|
|
493
494
|
padding: var(--ref-spacing-sm) var(--ref-spacing-sm) var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
494
|
-
color: var(--
|
|
495
|
+
color: var(--sys-color-text-secondary);
|
|
495
496
|
font-style: italic;
|
|
496
497
|
}
|
|
497
498
|
|
|
@@ -512,7 +513,7 @@
|
|
|
512
513
|
font-family: var(--comp-select-two-line-title-text-font-family);
|
|
513
514
|
font-size: var(--comp-select-two-line-title-text-size);
|
|
514
515
|
line-height: var(--comp-select-two-line-title-text-line-height);
|
|
515
|
-
color: var(--
|
|
516
|
+
color: var(--sys-color-text-interactive-default);
|
|
516
517
|
}
|
|
517
518
|
|
|
518
519
|
.caption {
|
|
@@ -520,7 +521,7 @@
|
|
|
520
521
|
font-family: var(--comp-select-two-line-caption-text-font-family);
|
|
521
522
|
font-size: var(--comp-select-two-line-caption-text-size);
|
|
522
523
|
line-height: var(--comp-select-two-line-caption-text-line-height);
|
|
523
|
-
color: var(--
|
|
524
|
+
color: var(--sys-color-text-secondary);
|
|
524
525
|
display: inline-block;
|
|
525
526
|
overflow: hidden;
|
|
526
527
|
white-space: nowrap;
|
|
@@ -555,11 +556,11 @@
|
|
|
555
556
|
display: flex;
|
|
556
557
|
width: 100%;
|
|
557
558
|
height: 100%;
|
|
558
|
-
background-color: var(--
|
|
559
|
+
background-color: var(--sys-color-surface-secondary);
|
|
559
560
|
min-height: 32px;
|
|
560
561
|
box-sizing: border-box;
|
|
561
562
|
padding: var(--comp-select-group-padding-vertical) var(--comp-select-group-padding-horizontal);
|
|
562
|
-
border-top: 1px solid var(--
|
|
563
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
563
564
|
|
|
564
565
|
.group-label {
|
|
565
566
|
white-space: initial;
|
|
@@ -567,7 +568,7 @@
|
|
|
567
568
|
font-size: var(--comp-select-group-text-size);
|
|
568
569
|
line-height: var(--comp-select-group-text-line-height);
|
|
569
570
|
font-family: var(--comp-select-group-text-font-family);
|
|
570
|
-
color: var(--
|
|
571
|
+
color: var(--sys-color-text-default);
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
574
|
}
|
|
@@ -577,7 +578,7 @@
|
|
|
577
578
|
margin-bottom: var(--ref-spacing-xxs);
|
|
578
579
|
padding: 0 var(--comp-select-search-bar-padding-horizontal) var(--comp-select-search-bar-margin-bottom)
|
|
579
580
|
var(--comp-select-search-bar-padding-horizontal);
|
|
580
|
-
border-bottom: 1px solid var(--
|
|
581
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
581
582
|
|
|
582
583
|
.select-all-checkbox {
|
|
583
584
|
padding-left: var(--ref-spacing-xxs);
|
|
@@ -589,11 +590,11 @@
|
|
|
589
590
|
cursor: pointer;
|
|
590
591
|
padding: 0;
|
|
591
592
|
margin-top: var(--ref-spacing-xxxs);
|
|
592
|
-
border-top: 1px solid var(--
|
|
593
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
593
594
|
}
|
|
594
595
|
|
|
595
596
|
.standalone-link {
|
|
596
|
-
color: var(--
|
|
597
|
+
color: var(--sys-color-link-default);
|
|
597
598
|
font-weight: var(--ref-font-weight-bold);
|
|
598
599
|
font-family: var(--ref-font-family);
|
|
599
600
|
background-color: transparent;
|
|
@@ -605,11 +606,11 @@
|
|
|
605
606
|
display: none;
|
|
606
607
|
|
|
607
608
|
&:hover {
|
|
608
|
-
color: var(--
|
|
609
|
+
color: var(--sys-color-link-hovered);
|
|
609
610
|
}
|
|
610
611
|
|
|
611
612
|
&:active {
|
|
612
|
-
color: var(--
|
|
613
|
+
color: var(--sys-color-link-clicked);
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
616
|
}
|
|
@@ -621,7 +622,7 @@
|
|
|
621
622
|
// Pinned items are moved to the top of the panel via `apSelectMultiple`.
|
|
622
623
|
// The boundary is the first unpinned option that follows a pinned one.
|
|
623
624
|
.ng-dropdown-panel .ap-option-pinned + .ng-option:not(.ap-option-pinned) {
|
|
624
|
-
border-top: 1px solid var(--
|
|
625
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
625
626
|
margin-top: var(--ref-spacing-xxs);
|
|
626
627
|
padding-top: var(--ref-spacing-xxs);
|
|
627
628
|
}
|
|
@@ -6,8 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
width: fit-content;
|
|
8
8
|
max-width: 350px;
|
|
9
|
-
background: var(--
|
|
10
|
-
border-radius: var(--
|
|
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(--
|
|
30
|
-
background: var(--
|
|
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(--
|
|
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(--
|
|
50
|
-
border-radius: var(--
|
|
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(--
|
|
54
|
-
font-family: var(--
|
|
55
|
-
font-size: var(--
|
|
56
|
-
font-weight: var(--
|
|
57
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
147
|
+
color: var(--sys-color-text-default);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ap-tooltip-arrow {
|
|
151
|
-
color: var(--
|
|
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(--
|
|
25
|
-
border-radius: var(--
|
|
26
|
-
color: var(--
|
|
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(--
|
|
37
|
+
color: var(--sys-color-text-subtle);
|
|
34
38
|
}
|
|
35
39
|
// Disabled
|
|
36
40
|
&:disabled {
|
|
37
|
-
background-color: var(--
|
|
38
|
-
color: var(--
|
|
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(--
|
|
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
|
-
|
|
46
|
-
&.
|
|
47
|
-
|
|
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(--
|
|
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(
|
|
66
|
-
border-color: var(--
|
|
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(--
|
|
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
|
}
|