Skip to content

Commit

Permalink
fix(styles): disable and valid, invalid style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidritter-dotcom committed Apr 4, 2024
1 parent 5ce4074 commit 2116d9e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/styles/src/components/form-validation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@
.form-control,
.form-select {
&.is-invalid {
border-color: form-validation.$form-feedback-invalid-color;
&:not(:disabled) {
border-color: form-validation.$form-feedback-invalid-color;
}

background-image: b.escape-svg(form-validation.$form-feedback-icon-invalid);

@include utilities-mx.high-contrast-mode() {
Expand All @@ -118,7 +121,10 @@
}

&.is-valid {
border-color: var(--post-success-green);
&:not(:disabled) {
border-color: var(--post-success-green);
}

background-image: b.escape-svg(form-validation.$form-feedback-icon-valid);

@include utilities-mx.high-contrast-mode() {
Expand Down

0 comments on commit 2116d9e

Please sign in to comment.