mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +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
|
||||
ignore_blank = el.classList.contains("blank-ok")
|
||||
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
|
||||
inlineToast(el.parentElement, el.id, INFORMATIVE, response.message);
|
||||
inlineToast(el.parentElement, el.id, SUCCESS, response.message);
|
||||
} else if (ignore_blank && response.code == "required"){
|
||||
// Visually remove the error
|
||||
error = "usa-input--error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue