Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid text color for inputs #3539

Merged
8 changes: 4 additions & 4 deletions packages/components/src/styles/_form-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ $check-border-size: min(#{variables.$db-border-height-2xs}, 2px);
@mixin get-validity-color($selector, $key: "valid") {
$variant: "successful";

@if ($key != "valid") {
$variant: "critical";
}

@include get-validity-message($key);

#{$selector},
Expand All @@ -173,10 +177,6 @@ $check-border-size: min(#{variables.$db-border-height-2xs}, 2px);
caret-color: var(--db-#{$variant}-on-bg-basic-emphasis-100-default);
}

@if ($key != "valid") {
$variant: "critical";
}

@if ($selector != textarea) {
@extend %db-#{$variant}-variables;
/* stylelint-disable-next-line at-rule-empty-line-before */
Expand Down
Loading