Skip to content

Commit 0a6221b

Browse files
authored
Merge branch 'main' into refactor-adding-the-pr-url-to-automated-pr-description
2 parents 3811b6b + 2a02263 commit 0a6221b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.changeset/four-carrots-flow.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@db-ux/core-components": patch
3+
"@db-ux/ngx-core-components": patch
4+
"@db-ux/react-core-components": patch
5+
"@db-ux/v-core-components": patch
6+
"@db-ux/wc-core-components": patch
7+
---
8+
9+
Set border of select, textarea, custom select and input to corresponding color when in/valid state is set.

packages/components/src/styles/internal/_form-components.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ $db-min-inline-size: var(
8888

8989
@mixin set-floating-label-overwrites($selector) {
9090
&[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+
91103
> label {
92104
@extend %db-overwrite-font-size-md;
93105

0 commit comments

Comments
 (0)