Skip to content

Commit

Permalink
fix: stylings for helper message and input variants
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed Feb 1, 2024
1 parent 11b0228 commit dd8f65e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/Input/HelperMessage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $error_field: #ec3f3f;
font-style: normal;
font-weight: 400;
line-height: 18px;
color: $inactive_color;
&--general {
color: $inactive_color;
}
Expand Down
6 changes: 6 additions & 0 deletions lib/components/Input/Input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ $border: 1px solid;
}
}

.deriv-input--general .deriv-input__field:disabled + .deriv-input__label,
.deriv-input--error .deriv-input__field:disabled + .deriv-input__label,
.deriv-input--success .deriv-input__field:disabled + .deriv-input__label {
color: $disabled_color;
}

.deriv-input--general .deriv-input__field:focus + .deriv-input__label {
color: $active_color;
}
Expand Down

0 comments on commit dd8f65e

Please sign in to comment.