feat: disabling auth submit on empty names

https://htmx.org/attributes/hx-validate/
for 'non form submittions' to trigger validation

custom check, because 'required' marks fields red immediately
and this js does only on attempted submittion,
not sure i want it, but seems better right now.
also - such a good argument for hyperscript
This commit is contained in:
efim
2023-11-05 04:14:36 +00:00
parent 3a6fe28981
commit 83c634c2b9
2 changed files with 65 additions and 8 deletions

View File

@@ -612,3 +612,8 @@ video {
font-size: 1.25rem;
line-height: 1.75rem;
}
.invalid\:bg-red-700:invalid {
--tw-bg-opacity: 1;
background-color: rgb(185 28 28 / var(--tw-bg-opacity));
}