Conversation
designmatty
left a comment
There was a problem hiding this comment.
Some high level issues that I discovered that I'd like to get fixes for prior to digging into the code:
All components that allow text entry (Textfield, Textarea, etc):
- If you provide a
valueprop, it prevents the user from overriding the value when they attempt to type into the field. This prop is useful, for example, in user settings fields where we display a user editable field for name/email/etc with their previously entered values but allow them to change them.
Colorinput:
- Same issue as above: by providing the value prop, it prevents the user from overriding
Radio/Checkbox:
- Accessibility issue: no focus state
- Consider this method
Togglefield:
- clicking label does not focus on input
- This is due to having nested labels
- Accessibility issue: no focus state
Field:
- clicking label does not focus on input
- This is due to having nested labels
|
On it! |
|
Pushed a fix for the
That said, passing a default value to an uncontrolled component is a great use case, one that Blueprint handles nicely via the |
|
@lederer it looks like |
|
Yay! Documented Also wired up and documented Ready for another look. |
designmatty
left a comment
There was a problem hiding this comment.
In textInput and select you've defined a font propType which doesn't do anything. Did you mean for this to be styled-system fontFamily propType?
|
Doh. Yes, I think that should be |
|
I have one suggestion for an enhancement before merging this in: So once we implement that one enhancement and the fix for |
6198d8f to
1e2d8a7
Compare
|
This looks good to go |

Overview
Add critical form components:
LabelTextInput<input type="text" />by default. usetypeprop to change topassword,email, etcTextareaSelectmultiplevia native<select multiple />RadioCheckboxindeterminate.FileInputColorInputField<label>and accepts optionalhint,alert,direction, and other propsToggleFieldFieldbut wraps relatedRadios orCheckboxesThese aren't fully tested in terms of handling events and being composed into complex components and layouts, but they should suffice as a foundational set of form components we can begin using now and can improve upon along the way.
Checklist
Are there any of the following in this PR?
If one of the above is checked...
Upgrade InstructionsDemo
Notes
Punted to separate issues:
RangeInput<input type="{date, time, datetime-local, month, week}" />Closes #30