Skip to content

Commit

Permalink
Fix #1000 theme-dark border-color incorrect for input validation (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
superfaz committed Jan 23, 2022
1 parent f4b4eb5 commit 61e4809
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/_includes/parts/form/validation-states.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="mb-3">
<label class="form-label">Validation States</label>
<label class="form-label">Validation States {% if include.lite %}(lite){% endif %}</label>
<input type="text" class="form-control is-valid{% if include.lite %} is-valid-lite{% endif %} mb-2" placeholder="Valid State..">
<input type="text" class="form-control is-invalid{% if include.lite %} is-invalid-lite{% endif %}" placeholder="Invalid State..">
{% unless include.lite %}<div class="invalid-feedback">Invalid feedback</div>{% endunless %}
</div>
</div>
11 changes: 10 additions & 1 deletion src/scss/layout/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,14 @@ body:not(.theme-dark) .hide-theme-light {
.apexcharts-radialbar-area {
stroke: $dark-mode-border-color;
}
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
border-color: var(--#{$variable-prefix}danger);
}

.form-control.is-valid,
.was-validated .form-control:valid {
border-color: var(--#{$variable-prefix}success);
}
}

0 comments on commit 61e4809

Please sign in to comment.