-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Solidify Form validation and submission pattern #66
Comments
Consider also AngularJS Forms. They provide a very robust solution around form validation and input state. Most appreciated is the fact that all form fields are automatically validated based on their HTML attributes ( With this it is trivial to disable a submit button for a form if it is not valid (in React psuedo code): <Button disabled={!this.refs.formName.isValid`}>Submit</Button> Initial thoughts and proposal for Stardust forms inspired heavily by AngularJS with some tweaks: Inputs
Fields
Forms
Classes
|
Related to TechnologyAdvice/unity-blog#197 TechnologyAdvice/unity-blog#201 |
+100 for good documentation |
:D |
Regarding approach here's a relevant opinion from Michael Bleigh:
However, his argument was not intended to sacrifice the *ilities of the Web, only to challenge the status quo. And I personally have had good luck leaning into Web semantics as a way to help ensure better accessibility while also providing a familiar pattern to hold onto while coding web forms in single-page apps. Given Semantic UI doesn't actually use good form semantics I'm going to start spiking towards a solution with markup semantics similar to that of Angular's, referencing the SUI docs and |
🪲 As a vendor, I want to know what registration fields are required, so that I don't skip important information
Semantic UI form validation is built in and works with the form state and messages. We may or may not want to use this, but it should be understood before making final decisions.
The text was updated successfully, but these errors were encountered: