Skip to content

Commit

Permalink
Tweak - Input box highlighting (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
MILAN88888 authored Aug 2, 2023
1 parent 20c6d59 commit 50d9d06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/css/user-registration.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@
content: "\f534";
}
}
.ur-input-border-green{
border-color: green !important;
}
.ur-input-border-red{
border-color: red !important;
}

.ur-frontend-form {
margin-bottom: 30px;
Expand Down
2 changes: 2 additions & 0 deletions assets/js/frontend/user-registration-form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,13 @@
var $element = $(element),
$parent = $element.closest(".form-row"),
inputName = $element.attr("name");
$element.removeClass('ur-input-border-green').addClass('ur-input-border-red');
},
unhighlight: function (element, errorClass, validClass) {
var $element = $(element),
$parent = $element.closest(".form-row"),
inputName = $element.attr("name");
$element.removeClass('ur-input-border-red').addClass('ur-input-border-green');

if (
$element.attr("type") === "radio" ||
Expand Down

0 comments on commit 50d9d06

Please sign in to comment.