Suggestion: make submit buttons inside forms with invalid inputs have the same look as disabled buttons
AndreLeria opened this issue · 0 comments
AndreLeria commented
I believe this would be useful for simpler forms which don't require javascript validation: while the button will technically still be enabled and clickable, the browser's form validation won't allow it to submit the form.
A simple solution would be to include a :has(:invalid)
selector in line 204 here:
pico/scss/content/_button.scss
Lines 200 to 208 in 6dc6489
But this would also apply to reset buttons and not make it optional, which I believe are undesirable for such a change. Still, making it optional and not applying it to reset buttons should not add too much complexity.