bitstyles icon indicating copy to clipboard operation
bitstyles copied to clipboard

Consider using `:user-invalid` instead of `:invalid` on inputs

Open angelikatyborska opened this issue 1 year ago • 1 comments

Currently, input:invalid is used to look like an input with errors. This can be annoying because inputs that the user didn't touch at all look like they have errors, e.g. when the input is required.

To prevent this form happening, we could switch to the newer :user-invalid.

angelikatyborska avatar Aug 19 '24 05:08 angelikatyborska

:user-invalid is way nicer, for sure! Can we apply this enhancement progressively? According to caniuse, the support in blink and webkit only started last year.

Screenshot 2024-09-02 at 16 46 06

planktonic avatar Sep 02 '24 14:09 planktonic