Shopify / polaris

Shopify’s design system to help us work together to build a great experience for all of our merchants.
https://polaris.shopify.com
Other
5.76k stars 1.17k forks source link

Client-side validation for form components #11678

Open bakura10 opened 6 months ago

bakura10 commented 6 months ago

Summary

Hi,

With Remix and App Bridge encouraging to use of native web features, it feels the user experience of Polaris when it comes to form could be drastically improved.

Specifically, Shopify select, text field and checkbox should probably listen to the invalid event (https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) to automatically adjust their errors.

Rationale

Benefit of this feature would be to provide merchants a better user experience by having a first, client side based validation that would not require a server interaction.

github-actions[bot] commented 2 weeks ago

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.