@db-ux/core-components 4.0.1 → 4.0.2
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 +11 -1
- package/agent/_instructions.md +7 -2
- package/build/components/accordion-item/accordion-item.css +2 -0
- 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/card/card.css +18 -13
- package/build/components/card/card.scss +8 -2
- package/build/components/checkbox/checkbox.css +2 -0
- package/build/components/custom-select/custom-select.css +14 -0
- 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 +2 -0
- package/build/components/input/input.css +14 -0
- package/build/components/link/link.css +2 -0
- package/build/components/navigation/navigation.css +2 -0
- package/build/components/navigation-item/navigation-item.css +2 -0
- package/build/components/notification/notification.css +2 -0
- package/build/components/radio/radio.css +2 -0
- package/build/components/select/select.css +14 -0
- package/build/components/switch/switch.css +2 -0
- 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 +2 -0
- package/build/components/textarea/textarea.css +29 -4
- package/build/components/tooltip/tooltip.css +2 -0
- package/build/styles/absolute.css +7 -7
- package/build/styles/index.css +7 -7
- package/build/styles/internal/_form-components.scss +22 -10
- package/build/styles/relative.css +7 -7
- package/build/styles/rollup.css +7 -7
- package/build/styles/webpack.css +7 -7
- package/package.json +3 -3
|
@@ -75,12 +75,12 @@ $db-min-inline-size: var(
|
|
|
75
75
|
// Workaround until the :blank pseudo-class is widely supported; then prefer targeting that pseudo-class.
|
|
76
76
|
#{$selector} {
|
|
77
77
|
&:is(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
[type="date"],
|
|
79
|
+
[type="datetime-local"],
|
|
80
|
+
[type="month"],
|
|
81
|
+
[type="week"],
|
|
82
|
+
[type="time"]
|
|
83
|
+
):not(:user-valid)::-webkit-datetime-edit {
|
|
84
84
|
@content;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -88,6 +88,18 @@ $db-min-inline-size: var(
|
|
|
88
88
|
|
|
89
89
|
@mixin set-floating-label-overwrites($selector) {
|
|
90
90
|
&[data-variant="floating"] {
|
|
91
|
+
@include get-validity($selector) {
|
|
92
|
+
label {
|
|
93
|
+
color: var(--db-successful-on-bg-basic-emphasis-80-default);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include get-validity($selector, "invalid") {
|
|
98
|
+
label {
|
|
99
|
+
color: var(--db-critical-on-bg-basic-emphasis-80-default);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
91
103
|
> label {
|
|
92
104
|
@extend %db-overwrite-font-size-md;
|
|
93
105
|
|
|
@@ -195,10 +207,6 @@ $db-min-inline-size: var(
|
|
|
195
207
|
$variant: "critical";
|
|
196
208
|
}
|
|
197
209
|
|
|
198
|
-
@if $selector == textarea {
|
|
199
|
-
--db-textarea-read-only: var(--db-#{$variant}-bg-basic-level-1-default);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
210
|
@if $selector != textarea {
|
|
203
211
|
@extend %db-#{$variant}-variables;
|
|
204
212
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
@@ -229,6 +237,10 @@ $db-min-inline-size: var(
|
|
|
229
237
|
--db-adaptive-on-bg-basic-emphasis-60-default: var(
|
|
230
238
|
--db-#{$variant}-on-bg-basic-emphasis-60-default
|
|
231
239
|
);
|
|
240
|
+
|
|
241
|
+
&[data-variant="floating"]::after {
|
|
242
|
+
border-color: var(--db-#{$variant}-on-bg-basic-emphasis-70-default);
|
|
243
|
+
}
|
|
232
244
|
}
|
|
233
245
|
|
|
234
246
|
#{$selector},
|