-
Notifications
You must be signed in to change notification settings - Fork 785
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
Form pattern #329
Comments
Additional form patterns: |
|
Hi all, I'm out for the week of thanksgiving, but I wanted to post a first draft of my form pattern here. @connor-leech, I haven't made the image assets yet.. but if you have time next week (and since you offered tee hee) — the copy can go into markdown! I'm attaching my WIP sketch file and a (gulp) PDF of my design for @petervachon, diana tran and @joshblack to review. @chrisconnors-ibm and @mjabbink went through most of it with me today and I've already made some of their changes. Sketch file: https://ibm.box.com/s/2cotywq7y6vrf9rjxw87c9b4d5f4gnbh PDF: |
Leaving feedback here, let me know if there is a better place! High-level feedbackSeems like it really covers all the bases, would it help to split up the content so that the page itself isn't overwhelming? Forms in general seem like one of the most complicated patterns and there is just so much content for it. General feedback
Do we want to encourage the dialog use-case? In general, will we offer guidance on what should happen with a form that exists in a panel or dialog that can be dismissed? Meaning that if the user has supplied information and the panel/dialog is dismissed would we want to keep it around, lost it, refresh state, etc.
This point is so good 💯 on the dev side, we could speak about how this relates to the There are a ton of great values for
How do we feel about Nielsen's article on placeholders? https://www.nngroup.com/articles/form-design-placeholders/
Would we want to follow the guidance in: https://www.nngroup.com/articles/required-fields/ and choose either the word "required" or the "" pattern? Maybe "required" would be easier since I'm not sure if "" is universal language-wise? Separately, this seems to contradict later down with the line "All fields in a form are assumed required" in that we state that it should clearly state being required, but then we say that fields are assumed required.
When we talk about positioning, would it make sense to communicate it using relative terms? Or are we expecting that forms would always be left-aligned even in a right-to-left situation? The way CSS is going it looks like they're using "block" and "inline" to refer to top/bottom and left/right accordingly, along with "start" and "end" to refer to either left or right side (or flipped for RTL). In other words, by default LTR would have the following alignments for these words:
So top-left would be inline-start and block-start, which would go between top/left for LTR and top/right for RTL Technical reference: https://adrianroselli.com/2019/11/css-logical-properties.html
Would we want to incorporate any dev feedback for folks on what the corresponding
Would we truncate or allow the input to overflow and be scrollable?
Not sure if this is something we would recommend doing, might be the case if the form is presented in a dialog or side panel but not necessarily on a page itself
Would we prefer help text to tooltips generally in form design?
When an error occurs, do we clear the input value? Do we have any preferences on how often a user should be receiving inline feedback on validity? Is it as they type? When the focus is moved away from the input? Some content that might be helpful to add for accessibility (or not):
Some broader concepts that we might need to touch on:
Some links and resources for accessibility:
|
Pattern describes the form element, it's multiple variants and its application for product and system level tasks. It covers the various inputs, actions and hierarchies that comprise a form and their usage, along with behaviors like errors and validation, progressive disclosure and inline verification.
Questions will arise around how we separate the Form component and Form pattern in the same way we separate Shell components from Navigation patterns. The form and and of itself is more of a pattern comprised of components, not a component and possibly should not be categorized as such. It's often a self-contained UI, in which layotus and relationshiops are critical to user experience — this aspect presents its own unique issues.
Carbon:
https://www.carbondesignsystem.com/components/form/code/
Cloud data and AI
https://github.ibm.com/CloudIntegrationDesign/DesignSystemAdoptionGuild/issues/38
Cloud data and AI
https://github.ibm.com/CloudIntegrationDesign/DesignSystemAdoptionGuild/issues/60
Cloud data and AI
https://github.ibm.com/CloudIntegrationDesign/DesignSystemAdoptionGuild/issues/62
IoT
https://pages.github.ibm.com/Watson-IoT/IoT-Design-Site/patterns/forms/
WCE
http://billboard1.fyre.ibm.com/component-library
The text was updated successfully, but these errors were encountered: