Closed EdwinGuzman closed 4 years ago
We should definitely add a radio type to Input
, that makes total sense to me.
I think for the particular the example you've included we would want another story over a brand new component that is built up of those HTML tags like we did with Autosuggest. I'm envisioning a new Input
story that's exactly what you've included here that just uses the Input
component.
That works.
Closed via #319.
Component in question:
Description of issue:
Input
component should allow a "radio" type and accept the required attributes for radio buttons.RadioInput
component as well?It's what I'm doing now for LCA and I think it makes sense but I would include the
fieldset
andlegend
to make the whole component (which at this point is more like a molecule) accessible.Sources: https://designsystem.digital.gov/components/form-controls/#radio-buttons https://a11y-style-guide.com/style-guide/section-forms.html#kssref-forms-radio-buttons https://webaim.org/techniques/forms/controls#radio