core icon indicating copy to clipboard operation
core copied to clipboard

Invalid styling only applied when placeholder is not shown

Open juthilo opened this issue 2 years ago • 2 comments

We're not sure if this is the intended behavior: an input with label and placeholder that is marked as required and empty will never be styled as invalid because the invalid rule is restricted to :not(:placeholder-shown). We would argue that placeholders are intended to indicate what should be entered into a field and not that the field is optional.

juthilo avatar Mar 03 '23 13:03 juthilo

You're right – it's a bad workaround until we get :user-invalid soon. At least the error message would still get displayed, but not the color for this constellation. I'll keep this ticket open so that we could use it as a reminder for :user-invalid.

mfranzke avatar Mar 06 '23 06:03 mfranzke

See #226

d-koppenhagen avatar Mar 08 '23 08:03 d-koppenhagen