htmlstreamofficial / preline

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
https://preline.co
Other
4.9k stars 309 forks source link

Error Input Field Lacks Border and Incorrect Icon Position #449

Closed dhinesh-kumar-m closed 2 months ago

dhinesh-kumar-m commented 3 months ago

Summary

When an error occurs in the password input field, the error state is not visually distinct because the input field does not have a red border. Additionally, the error icon appears to be incorrectly positioned. This makes it difficult for users to identify the input field error visually.

Steps to Reproduce

Demo Link

https://preline.co/examples/forms-authentication.html#signin

Expected Behavior

Actual Behavior

Screenshots

image

oliverhaas commented 3 months ago

I guess one could argue that the example is wrong, but this is not really a bug in the library.

Just add proper alignment and border classes. Depending on how you render your html and do your validation, this can vary quite a bit.

Or am I missing something?

jahaganiev commented 2 months ago

@dhinesh-kumar-m As Oliver mentioned, this issue has nothing to do with Examples.

You may check validation state styles here and apply them where needed.

Hope that helps!