Replies: 1 comment 1 reply
|
%100 agree |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm loving Mantine, and how easy it was to get great looking error states and messages on
TextInputwith theerrorprop. However, I notice out of the box it colors the placeholder text when the input is in an error state. This makes it look like actual text, which is confusing to the user IMO. For example, in this image the input is empty, and "me@example.com" is actually the placeholder:The user might get into this state by entering an invalid email, trying to submit, then deleting the email to start over.
Overriding this behavior is simple enough, but I'm wondering if the default shouldn't be to always use the placeholder color regardless of form error state. I think this is more aligned with "default" behavior, e.g. the native browser input validation appearance and scheme.
Thoughts on changing default behavior so the placeholder is always
var(--mantine-color-placeholder)regardless of input error state?All reactions