You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a FormFieldGroup component that handles the correct accessibility for grouping inputs. Common use cases are billing address inputs that are groups by a field set, or credit card inputs. Our current Form Field does't handle grouped inputs very well.
The API and styling would be the same as FormField in Preivew
Default element is FieldSet
Default Label is Legend
Make sure inputs like checkbox group are styled correctly
Add examples like billing and shipping with multiple inputs that are grouped
The text was updated successfully, but these errors were encountered:
Fixes: #2805, #2806, #2820, [#2807](#2807)
[category:Components]
Release Note:
- We've added a new `FormFieldGroup` component to use when grouping inputs like checkboxes and radio inputs that need to be associated to one another. Its API matches the `FormField` API where you have `error` prop as well as `id` `isRequired` and `orienation`.
- `orientation` has been added back to `useFormFieldModel` to better support sub component styling.
- Styles have been cleaned up to use `gap` for proper spacing between labels, inputs and hint text.
- Added a new `FormField.Field` component to ensure proper alignment between label and inputs regardless of orientation and hint text. Ensure to wrap your inputs and hint text in this component.
Co-authored-by: manuel.carrera <[email protected]>
Co-authored-by: @josh-bagwell <[email protected]>
Co-authored-by: @RayRedGoose <[email protected]>
🚀 Feature Proposal
Create a FormFieldGroup component that handles the correct accessibility for grouping inputs. Common use cases are billing address inputs that are groups by a field set, or credit card inputs. Our current Form Field does't handle grouped inputs very well.
Legend
The text was updated successfully, but these errors were encountered: