Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using :user-invalid instead of :invalid on inputs #826

Open
angelikatyborska opened this issue Aug 19, 2024 · 1 comment
Open

Comments

@angelikatyborska
Copy link
Contributor

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.

@planktonic
Copy link
Member

: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants