mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 13:34:10 +02:00
Swap back to green error messaging instead of blue informative
This commit is contained in:
parent
974c5f5a9e
commit
dac472cab2
1 changed files with 2 additions and 2 deletions
|
@ -138,9 +138,9 @@ function checkDomainAvailability(el) {
|
||||||
// Determines if we ignore the field if it is just blank
|
// Determines if we ignore the field if it is just blank
|
||||||
ignore_blank = el.classList.contains("blank-ok")
|
ignore_blank = el.classList.contains("blank-ok")
|
||||||
if (el.validity.valid) {
|
if (el.validity.valid) {
|
||||||
el.classList.add('usa-input--info');
|
el.classList.add('usa-input--success');
|
||||||
// use of `parentElement` due to .gov inputs being wrapped in www/.gov decoration
|
// use of `parentElement` due to .gov inputs being wrapped in www/.gov decoration
|
||||||
inlineToast(el.parentElement, el.id, INFORMATIVE, response.message);
|
inlineToast(el.parentElement, el.id, SUCCESS, response.message);
|
||||||
} else if (ignore_blank && response.code == "required"){
|
} else if (ignore_blank && response.code == "required"){
|
||||||
// Visually remove the error
|
// Visually remove the error
|
||||||
error = "usa-input--error"
|
error = "usa-input--error"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue