@db-ux/core-components 3.1.20 → 4.0.1-0-540218c
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/CHANGELOG.md +16 -0
- package/agent/_instructions.md +7 -2
- package/build/components/accordion-item/accordion-item.css +4 -1
- package/build/components/badge/badge.css +2 -0
- package/build/components/brand/brand.css +2 -0
- package/build/components/button/button.css +2 -0
- package/build/components/checkbox/checkbox.css +28 -17
- package/build/components/checkbox/checkbox.scss +2 -52
- package/build/components/custom-select/custom-select.css +61 -1
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +2 -0
- package/build/components/custom-select-form-field/custom-select-form-field.css +2 -0
- package/build/components/custom-select-list/custom-select-list.css +2 -0
- package/build/components/custom-select-list-item/custom-select-list-item.css +2 -0
- package/build/components/header/header.css +2 -0
- package/build/components/infotext/infotext.css +10 -7
- package/build/components/infotext/infotext.scss +2 -2
- package/build/components/input/input.css +74 -1
- package/build/components/link/link.css +4 -1
- package/build/components/navigation/navigation.css +2 -0
- package/build/components/navigation-item/navigation-item.css +4 -1
- package/build/components/notification/notification.css +4 -1
- package/build/components/radio/radio.css +2 -0
- package/build/components/select/select.css +61 -1
- package/build/components/switch/switch.css +298 -439
- package/build/components/switch/switch.scss +93 -76
- package/build/components/tab-item/tab-item.css +2 -0
- package/build/components/tab-list/tab-list.css +2 -0
- package/build/components/tabs/tabs.css +2 -0
- package/build/components/tag/tag.css +4 -1
- package/build/components/textarea/textarea.css +76 -0
- package/build/components/tooltip/tooltip.css +2 -0
- package/build/styles/absolute.css +133 -31
- package/build/styles/index.css +133 -31
- package/build/styles/internal/_form-components.scss +87 -0
- package/build/styles/relative.css +133 -31
- package/build/styles/rollup.css +133 -31
- package/build/styles/webpack.css +133 -31
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @db-ux/core-components
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
_version bump_
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 4.0.0
|
|
9
|
+
|
|
10
|
+
### Major Changes
|
|
11
|
+
|
|
12
|
+
- feat: Switch stable rework - [see commit cb2deb0](https://github.com/db-ux-design-system/core-web/commit/cb2deb0f1c54900d1967483aea05d81279c02f59):
|
|
13
|
+
- **BREAKING CHANGE**: remove `emphasis` property
|
|
14
|
+
- introduce validation (invalid and valid)
|
|
15
|
+
- configurable label position
|
|
16
|
+
|
|
17
|
+
- **BREAKING CHANGE**: refactor(Custom Select): renamed `ariaListLabel` property to `listLabel` - [see commit 966d5ad](https://github.com/db-ux-design-system/core-web/commit/966d5ad01f00d0ca1707cc316a63e2d431fff1e9)
|
|
18
|
+
|
|
3
19
|
## 3.1.20
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/agent/_instructions.md
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
### `DBButton` or `db-button`
|
|
4
4
|
|
|
5
|
-
- available variants are `
|
|
6
|
-
- always use variant `
|
|
5
|
+
- available variants are `outlined`, `brand`, `filled`, `ghost`
|
|
6
|
+
- always use variant `outlined` as default
|
|
7
7
|
- use variant `brand` as CTA or primary action
|
|
8
8
|
- if `noText`/`no-text` property is used add a `DBTooltip` or `db-tooltip` inside the Button
|
|
9
9
|
- always add a `type` as property as best practise
|
|
10
|
+
|
|
11
|
+
### `DBStack` or `db-stack`
|
|
12
|
+
|
|
13
|
+
- there is no property `gap="fix-md"`, available values are `small`, `medium`, etc.
|
|
14
|
+
- there is no property `direction="horizontal"`, available values are `row`, `column`, etc.
|
|
@@ -161,7 +161,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
161
161
|
overflow: clip;
|
|
162
162
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
163
163
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
164
|
-
|
|
164
|
+
aspect-ratio: 1;
|
|
165
|
+
flex-shrink: 0;
|
|
165
166
|
content: var(--db-icon, attr(data-icon));
|
|
166
167
|
}
|
|
167
168
|
@supports (content: ""/"") {
|
|
@@ -250,6 +251,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
250
251
|
|
|
251
252
|
@layer variables {}
|
|
252
253
|
|
|
254
|
+
/* Use for body tags like <p> */
|
|
255
|
+
/* Use for headline tags like <h1> */
|
|
253
256
|
/**
|
|
254
257
|
* @mixin screen-min-max
|
|
255
258
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -127,6 +127,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
127
127
|
|
|
128
128
|
@layer variables {}
|
|
129
129
|
|
|
130
|
+
/* Use for body tags like <p> */
|
|
131
|
+
/* Use for headline tags like <h1> */
|
|
130
132
|
.db-badge {
|
|
131
133
|
font-weight: 700;
|
|
132
134
|
white-space: nowrap;
|
|
@@ -113,6 +113,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
113
113
|
|
|
114
114
|
@layer variables {}
|
|
115
115
|
|
|
116
|
+
/* Use for body tags like <p> */
|
|
117
|
+
/* Use for headline tags like <h1> */
|
|
116
118
|
.db-brand {
|
|
117
119
|
gap: var(--db-spacing-fixed-sm);
|
|
118
120
|
align-items: center;
|
|
@@ -123,6 +123,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
123
123
|
|
|
124
124
|
@layer variables {}
|
|
125
125
|
|
|
126
|
+
/* Use for body tags like <p> */
|
|
127
|
+
/* Use for headline tags like <h1> */
|
|
126
128
|
/**
|
|
127
129
|
* @mixin screen-min-max
|
|
128
130
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -82,7 +82,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
82
82
|
overflow: clip;
|
|
83
83
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
84
84
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
85
|
-
|
|
85
|
+
aspect-ratio: 1;
|
|
86
|
+
flex-shrink: 0;
|
|
86
87
|
content: var(--db-icon, attr(data-icon));
|
|
87
88
|
}
|
|
88
89
|
@supports (content: ""/"") {
|
|
@@ -181,6 +182,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
181
182
|
|
|
182
183
|
@layer variables {}
|
|
183
184
|
|
|
185
|
+
/* Use for body tags like <p> */
|
|
186
|
+
/* Use for headline tags like <h1> */
|
|
184
187
|
/**
|
|
185
188
|
* @mixin screen-min-max
|
|
186
189
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -294,6 +297,9 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
294
297
|
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
295
298
|
--db-successful-on-bg-basic-emphasis-80-pressed
|
|
296
299
|
);
|
|
300
|
+
--db-adaptive-on-bg-inverted-default: var(
|
|
301
|
+
--db-successful-on-bg-inverted-default
|
|
302
|
+
);
|
|
297
303
|
}
|
|
298
304
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
|
|
299
305
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > .db-infotext {
|
|
@@ -319,15 +325,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
319
325
|
);
|
|
320
326
|
}
|
|
321
327
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) input:checked {
|
|
322
|
-
--db-icon-color: var(--db-successful-on-bg-inverted-default);
|
|
323
328
|
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
324
|
-
--db-successful-bg-inverted-contrast-
|
|
329
|
+
--db-successful-bg-inverted-contrast-low-default
|
|
325
330
|
);
|
|
326
331
|
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
327
|
-
--db-successful-bg-inverted-contrast-
|
|
332
|
+
--db-successful-bg-inverted-contrast-low-hovered
|
|
328
333
|
);
|
|
329
334
|
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
330
|
-
--db-successful-bg-inverted-contrast-
|
|
335
|
+
--db-successful-bg-inverted-contrast-low-pressed
|
|
331
336
|
);
|
|
332
337
|
}
|
|
333
338
|
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]), .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) {
|
|
@@ -343,6 +348,9 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
343
348
|
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
344
349
|
--db-successful-on-bg-basic-emphasis-80-pressed
|
|
345
350
|
);
|
|
351
|
+
--db-adaptive-on-bg-inverted-default: var(
|
|
352
|
+
--db-successful-on-bg-inverted-default
|
|
353
|
+
);
|
|
346
354
|
}
|
|
347
355
|
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
|
|
348
356
|
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext, .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
|
|
@@ -371,15 +379,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
371
379
|
);
|
|
372
380
|
}
|
|
373
381
|
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) input:checked, .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) input:checked {
|
|
374
|
-
--db-icon-color: var(--db-successful-on-bg-inverted-default);
|
|
375
382
|
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
376
|
-
--db-successful-bg-inverted-contrast-
|
|
383
|
+
--db-successful-bg-inverted-contrast-low-default
|
|
377
384
|
);
|
|
378
385
|
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
379
|
-
--db-successful-bg-inverted-contrast-
|
|
386
|
+
--db-successful-bg-inverted-contrast-low-hovered
|
|
380
387
|
);
|
|
381
388
|
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
382
|
-
--db-successful-bg-inverted-contrast-
|
|
389
|
+
--db-successful-bg-inverted-contrast-low-pressed
|
|
383
390
|
);
|
|
384
391
|
}
|
|
385
392
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) {
|
|
@@ -395,6 +402,9 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
395
402
|
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
396
403
|
--db-critical-on-bg-basic-emphasis-80-pressed
|
|
397
404
|
);
|
|
405
|
+
--db-adaptive-on-bg-inverted-default: var(
|
|
406
|
+
--db-critical-on-bg-inverted-default
|
|
407
|
+
);
|
|
398
408
|
}
|
|
399
409
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
|
|
400
410
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > .db-infotext[data-semantic=critical]:not([hidden]) {
|
|
@@ -416,15 +426,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
416
426
|
);
|
|
417
427
|
}
|
|
418
428
|
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) input:checked {
|
|
419
|
-
--db-icon-color: var(--db-critical-on-bg-inverted-default);
|
|
420
429
|
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
421
|
-
--db-critical-bg-inverted-contrast-
|
|
430
|
+
--db-critical-bg-inverted-contrast-low-default
|
|
422
431
|
);
|
|
423
432
|
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
424
|
-
--db-critical-bg-inverted-contrast-
|
|
433
|
+
--db-critical-bg-inverted-contrast-low-hovered
|
|
425
434
|
);
|
|
426
435
|
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
427
|
-
--db-critical-bg-inverted-contrast-
|
|
436
|
+
--db-critical-bg-inverted-contrast-low-pressed
|
|
428
437
|
);
|
|
429
438
|
}
|
|
430
439
|
.db-checkbox:has(input[data-custom-validity=invalid]), .db-checkbox[data-custom-validity=invalid] {
|
|
@@ -440,6 +449,9 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
440
449
|
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
441
450
|
--db-critical-on-bg-basic-emphasis-80-pressed
|
|
442
451
|
);
|
|
452
|
+
--db-adaptive-on-bg-inverted-default: var(
|
|
453
|
+
--db-critical-on-bg-inverted-default
|
|
454
|
+
);
|
|
443
455
|
}
|
|
444
456
|
.db-checkbox:has(input[data-custom-validity=invalid]) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
|
|
445
457
|
.db-checkbox:has(input[data-custom-validity=invalid]) > .db-infotext[data-semantic=critical]:not([hidden]), .db-checkbox[data-custom-validity=invalid] > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
|
|
@@ -463,15 +475,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
463
475
|
);
|
|
464
476
|
}
|
|
465
477
|
.db-checkbox:has(input[data-custom-validity=invalid]) input:checked, .db-checkbox[data-custom-validity=invalid] input:checked {
|
|
466
|
-
--db-icon-color: var(--db-critical-on-bg-inverted-default);
|
|
467
478
|
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
468
|
-
--db-critical-bg-inverted-contrast-
|
|
479
|
+
--db-critical-bg-inverted-contrast-low-default
|
|
469
480
|
);
|
|
470
481
|
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
471
|
-
--db-critical-bg-inverted-contrast-
|
|
482
|
+
--db-critical-bg-inverted-contrast-low-hovered
|
|
472
483
|
);
|
|
473
484
|
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
474
|
-
--db-critical-bg-inverted-contrast-
|
|
485
|
+
--db-critical-bg-inverted-contrast-low-pressed
|
|
475
486
|
);
|
|
476
487
|
}
|
|
477
488
|
.db-checkbox input {
|
|
@@ -24,56 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
@mixin get-validity-color-check($key: "valid") {
|
|
28
|
-
$variant: successful;
|
|
29
|
-
|
|
30
|
-
@if $key != "valid" {
|
|
31
|
-
$variant: critical;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
--db-check-element-border-color: var(
|
|
35
|
-
--db-#{$variant}-on-bg-basic-emphasis-70-default
|
|
36
|
-
);
|
|
37
|
-
--db-adaptive-on-bg-basic-emphasis-100-default: var(
|
|
38
|
-
--db-#{$variant}-on-bg-basic-emphasis-80-default
|
|
39
|
-
);
|
|
40
|
-
--db-adaptive-on-bg-basic-emphasis-100-hovered: var(
|
|
41
|
-
--db-#{$variant}-on-bg-basic-emphasis-80-hovered
|
|
42
|
-
);
|
|
43
|
-
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
44
|
-
--db-#{$variant}-on-bg-basic-emphasis-80-pressed
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
@include form-components.get-validity-message($key);
|
|
48
|
-
|
|
49
|
-
input {
|
|
50
|
-
&:not(:checked) {
|
|
51
|
-
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
52
|
-
--db-#{$variant}-bg-basic-transparent-full-default
|
|
53
|
-
);
|
|
54
|
-
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
55
|
-
--db-#{$variant}-bg-basic-transparent-full-hovered
|
|
56
|
-
);
|
|
57
|
-
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
58
|
-
--db-#{$variant}-bg-basic-transparent-full-pressed
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:checked {
|
|
63
|
-
--db-icon-color: var(--db-#{$variant}-on-bg-inverted-default);
|
|
64
|
-
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
65
|
-
--db-#{$variant}-bg-inverted-contrast-high-default
|
|
66
|
-
);
|
|
67
|
-
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
68
|
-
--db-#{$variant}-bg-inverted-contrast-high-hovered
|
|
69
|
-
);
|
|
70
|
-
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
71
|
-
--db-#{$variant}-bg-inverted-contrast-high-pressed
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
27
|
.db-checkbox {
|
|
78
28
|
@extend %helper-message;
|
|
79
29
|
@include form-components.set-default-check-element;
|
|
@@ -85,12 +35,12 @@
|
|
|
85
35
|
|
|
86
36
|
@include form-components.get-validity(check) {
|
|
87
37
|
&:has(.db-infotext[data-semantic="successful"]) {
|
|
88
|
-
@include get-validity-color-
|
|
38
|
+
@include form-components.get-validity-color-checkbox("valid");
|
|
89
39
|
}
|
|
90
40
|
}
|
|
91
41
|
|
|
92
42
|
@include form-components.get-validity(check, "invalid") {
|
|
93
|
-
@include get-validity-color-
|
|
43
|
+
@include form-components.get-validity-color-checkbox("invalid");
|
|
94
44
|
}
|
|
95
45
|
|
|
96
46
|
input {
|
|
@@ -551,7 +551,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
551
551
|
overflow: clip;
|
|
552
552
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
553
553
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
554
|
-
|
|
554
|
+
aspect-ratio: 1;
|
|
555
|
+
flex-shrink: 0;
|
|
555
556
|
content: var(--db-icon, attr(data-icon));
|
|
556
557
|
}
|
|
557
558
|
@supports (content: ""/"") {
|
|
@@ -678,6 +679,8 @@ input[type=radio]:checked) > label {
|
|
|
678
679
|
|
|
679
680
|
@layer variables {}
|
|
680
681
|
|
|
682
|
+
/* Use for body tags like <p> */
|
|
683
|
+
/* Use for headline tags like <h1> */
|
|
681
684
|
.db-custom-select summary {
|
|
682
685
|
border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
|
|
683
686
|
}
|
|
@@ -833,6 +836,18 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
833
836
|
content: "*"/"";
|
|
834
837
|
}
|
|
835
838
|
}
|
|
839
|
+
.db-custom-select[data-variant=floating]:has(select:not([data-custom-validity]):is(:required):user-valid) label {
|
|
840
|
+
color: var(--db-successful-on-bg-basic-emphasis-80-default);
|
|
841
|
+
}
|
|
842
|
+
.db-custom-select[data-variant=floating]:has(select[data-custom-validity=valid]) label, .db-custom-select[data-variant=floating][data-custom-validity=valid] label {
|
|
843
|
+
color: var(--db-successful-on-bg-basic-emphasis-80-default);
|
|
844
|
+
}
|
|
845
|
+
.db-custom-select[data-variant=floating]:has(select:not([data-custom-validity]):is(:required):user-invalid) label {
|
|
846
|
+
color: var(--db-critical-on-bg-basic-emphasis-80-default);
|
|
847
|
+
}
|
|
848
|
+
.db-custom-select[data-variant=floating]:has(select[data-custom-validity=invalid]) label, .db-custom-select[data-variant=floating][data-custom-validity=invalid] label {
|
|
849
|
+
color: var(--db-critical-on-bg-basic-emphasis-80-default);
|
|
850
|
+
}
|
|
836
851
|
.db-custom-select[data-variant=floating] > label {
|
|
837
852
|
opacity: var(--db-opacity-xl);
|
|
838
853
|
position: absolute;
|
|
@@ -850,6 +865,14 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
850
865
|
transition: none;
|
|
851
866
|
opacity: 0;
|
|
852
867
|
}
|
|
868
|
+
.db-custom-select[data-variant=floating] summary:is([type=date],
|
|
869
|
+
[type=datetime-local],
|
|
870
|
+
[type=month],
|
|
871
|
+
[type=week],
|
|
872
|
+
[type=time]):not(:user-valid)::-webkit-datetime-edit {
|
|
873
|
+
transition: none;
|
|
874
|
+
opacity: 0;
|
|
875
|
+
}
|
|
853
876
|
.db-custom-select[data-variant=floating] summary {
|
|
854
877
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
855
878
|
padding-block-start: var(--db-base-body-icon-font-size-2xs);
|
|
@@ -893,6 +916,34 @@ input[type=radio]:checked) [id$=-placeholder] {
|
|
|
893
916
|
transition: opacity var(--db-transition-straight-emotional);
|
|
894
917
|
}
|
|
895
918
|
}
|
|
919
|
+
.db-custom-select[data-variant=floating]:has(summary:focus-within,
|
|
920
|
+
summary:is(input, textarea):not(:placeholder-shown),
|
|
921
|
+
> select option:checked:not(.placeholder),
|
|
922
|
+
input[type=checkbox]:checked,
|
|
923
|
+
input[type=radio]:checked) summary:is([type=date],
|
|
924
|
+
[type=datetime-local],
|
|
925
|
+
[type=month],
|
|
926
|
+
[type=week],
|
|
927
|
+
[type=time]):not(:user-valid)::-webkit-datetime-edit {
|
|
928
|
+
opacity: var(--db-opacity-xl);
|
|
929
|
+
font-family: var(--db-font-family-sans);
|
|
930
|
+
font-style: italic;
|
|
931
|
+
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
932
|
+
padding-block-start: var(--db-base-body-icon-font-size-2xs);
|
|
933
|
+
}
|
|
934
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
935
|
+
.db-custom-select[data-variant=floating]:has(summary:focus-within,
|
|
936
|
+
summary:is(input, textarea):not(:placeholder-shown),
|
|
937
|
+
> select option:checked:not(.placeholder),
|
|
938
|
+
input[type=checkbox]:checked,
|
|
939
|
+
input[type=radio]:checked) summary:is([type=date],
|
|
940
|
+
[type=datetime-local],
|
|
941
|
+
[type=month],
|
|
942
|
+
[type=week],
|
|
943
|
+
[type=time]):not(:user-valid)::-webkit-datetime-edit {
|
|
944
|
+
transition: opacity var(--db-transition-straight-emotional);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
896
947
|
.db-custom-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
|
|
897
948
|
> db-infotext > .db-infotext[data-semantic=successful]) {
|
|
898
949
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
@@ -1005,6 +1056,15 @@ input[type=radio]:checked) [id$=-placeholder] {
|
|
|
1005
1056
|
font-family: var(--db-font-family-sans);
|
|
1006
1057
|
font-style: italic;
|
|
1007
1058
|
}
|
|
1059
|
+
.db-custom-select summary:is([type=date],
|
|
1060
|
+
[type=datetime-local],
|
|
1061
|
+
[type=month],
|
|
1062
|
+
[type=week],
|
|
1063
|
+
[type=time]):not(:user-valid)::-webkit-datetime-edit {
|
|
1064
|
+
opacity: var(--db-opacity-xl);
|
|
1065
|
+
font-family: var(--db-font-family-sans);
|
|
1066
|
+
font-style: italic;
|
|
1067
|
+
}
|
|
1008
1068
|
.db-custom-select summary {
|
|
1009
1069
|
background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
|
|
1010
1070
|
caret-color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
|
|
@@ -358,6 +358,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
358
358
|
|
|
359
359
|
@layer variables {}
|
|
360
360
|
|
|
361
|
+
/* Use for body tags like <p> */
|
|
362
|
+
/* Use for headline tags like <h1> */
|
|
361
363
|
.db-custom-select-dropdown {
|
|
362
364
|
position: absolute;
|
|
363
365
|
z-index: 32;
|
|
@@ -122,6 +122,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
122
122
|
|
|
123
123
|
@layer variables {}
|
|
124
124
|
|
|
125
|
+
/* Use for body tags like <p> */
|
|
126
|
+
/* Use for headline tags like <h1> */
|
|
125
127
|
/**
|
|
126
128
|
* @mixin screen-min-max
|
|
127
129
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -122,6 +122,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
122
122
|
|
|
123
123
|
@layer variables {}
|
|
124
124
|
|
|
125
|
+
/* Use for body tags like <p> */
|
|
126
|
+
/* Use for headline tags like <h1> */
|
|
125
127
|
/**
|
|
126
128
|
* @mixin screen-min-max
|
|
127
129
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -146,6 +146,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
146
146
|
|
|
147
147
|
@layer variables {}
|
|
148
148
|
|
|
149
|
+
/* Use for body tags like <p> */
|
|
150
|
+
/* Use for headline tags like <h1> */
|
|
149
151
|
/**
|
|
150
152
|
* @mixin screen-min-max
|
|
151
153
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -123,6 +123,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
123
123
|
|
|
124
124
|
@layer variables {}
|
|
125
125
|
|
|
126
|
+
/* Use for body tags like <p> */
|
|
127
|
+
/* Use for headline tags like <h1> */
|
|
126
128
|
.db-infotext:not([data-icon]):not([data-show-icon-leading=false])::before {
|
|
127
129
|
color: var(--db-icon-color, inherit);
|
|
128
130
|
display: inline-block;
|
|
@@ -143,7 +145,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
143
145
|
overflow: clip;
|
|
144
146
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
145
147
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
146
|
-
|
|
148
|
+
aspect-ratio: 1;
|
|
149
|
+
flex-shrink: 0;
|
|
147
150
|
content: var(--db-icon, attr(data-icon));
|
|
148
151
|
}
|
|
149
152
|
@supports (content: ""/"") {
|
|
@@ -180,13 +183,13 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
180
183
|
margin-inline-end: var(--db-icon-margin-end, var(--db-spacing-fixed-xs));
|
|
181
184
|
}
|
|
182
185
|
.db-infotext[data-semantic=adaptive], .db-infotext:not([data-semantic]) {
|
|
183
|
-
color: var(--db-adaptive-bg-
|
|
186
|
+
color: var(--db-adaptive-on-bg-basic-emphasis-80-default);
|
|
184
187
|
}
|
|
185
188
|
.db-infotext[data-semantic=adaptive]::before, .db-infotext:not([data-semantic])::before {
|
|
186
189
|
--db-icon-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
187
190
|
}
|
|
188
191
|
.db-infotext[data-semantic=neutral] {
|
|
189
|
-
color: var(--db-neutral-bg-
|
|
192
|
+
color: var(--db-neutral-on-bg-basic-emphasis-80-default);
|
|
190
193
|
}
|
|
191
194
|
.db-infotext[data-semantic=neutral]:not([data-icon])::before {
|
|
192
195
|
--db-icon: "information_circle";
|
|
@@ -198,7 +201,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
198
201
|
);
|
|
199
202
|
}
|
|
200
203
|
.db-infotext[data-semantic=critical] {
|
|
201
|
-
color: var(--db-critical-bg-
|
|
204
|
+
color: var(--db-critical-on-bg-basic-emphasis-80-default);
|
|
202
205
|
}
|
|
203
206
|
.db-infotext[data-semantic=critical]:not([data-icon])::before {
|
|
204
207
|
--db-icon: "exclamation_mark_circle";
|
|
@@ -210,7 +213,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
210
213
|
);
|
|
211
214
|
}
|
|
212
215
|
.db-infotext[data-semantic=successful] {
|
|
213
|
-
color: var(--db-successful-bg-
|
|
216
|
+
color: var(--db-successful-on-bg-basic-emphasis-80-default);
|
|
214
217
|
}
|
|
215
218
|
.db-infotext[data-semantic=successful]:not([data-icon])::before {
|
|
216
219
|
--db-icon: "check_circle";
|
|
@@ -221,7 +224,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
221
224
|
);
|
|
222
225
|
}
|
|
223
226
|
.db-infotext[data-semantic=warning] {
|
|
224
|
-
color: var(--db-warning-bg-
|
|
227
|
+
color: var(--db-warning-on-bg-basic-emphasis-80-default);
|
|
225
228
|
}
|
|
226
229
|
.db-infotext[data-semantic=warning]:not([data-icon])::before {
|
|
227
230
|
--db-icon: "exclamation_mark_triangle";
|
|
@@ -233,7 +236,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
233
236
|
);
|
|
234
237
|
}
|
|
235
238
|
.db-infotext[data-semantic=informational] {
|
|
236
|
-
color: var(--db-informational-bg-
|
|
239
|
+
color: var(--db-informational-on-bg-basic-emphasis-80-default);
|
|
237
240
|
}
|
|
238
241
|
.db-infotext[data-semantic=informational]:not([data-icon])::before {
|
|
239
242
|
--db-icon: "information_circle";
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
&[data-semantic="adaptive"],
|
|
24
24
|
&:not([data-semantic]) {
|
|
25
|
-
color: colors.$db-adaptive-bg-
|
|
25
|
+
color: colors.$db-adaptive-on-bg-basic-emphasis-80-default;
|
|
26
26
|
|
|
27
27
|
&::before {
|
|
28
28
|
--db-icon-color: #{colors.$db-adaptive-on-bg-basic-emphasis-70-default};
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
&[data-semantic="#{$name}"] {
|
|
34
34
|
@include icons.variant-icons($name);
|
|
35
35
|
|
|
36
|
-
color: var(--db-#{$name}-bg-
|
|
36
|
+
color: var(--db-#{$name}-on-bg-basic-emphasis-80-default);
|
|
37
37
|
|
|
38
38
|
&::before {
|
|
39
39
|
--db-icon-color: var(
|