graycoreio / daffodil

Angular Ecommerce PWA Framework
https://next.daff.io
MIT License
157 stars 31 forks source link

[FEAT] DaffRadioComponent and DaffRadioSetComponent #781

Open xelaint opened 4 years ago

xelaint commented 4 years ago

:bulb: Feature request

Feature Name

DaffRadioComponent and DaffRadioSetComponent

The Desired Behavior

DaffRadioComponent needs to use the native input element (<input type="radio" />) but contains custom styling and functionality. The host should have role="radio" added as an attribute.

Properties needed for DaffRadioComponent:

DaffRadioSetComponent wraps a set of <daff-radio>s. It takes an Angular FormControl as an input. The value of the FormControl is the id of the selected radio. The host should have role="radiogroup" added as an attribute.

Your Use Case

As an enduser, I should be able to make a single selection from a set of options.

Prior Work

Environment


Daffodil version: X.Y.Z
Angular version: X.Y.Z 


For Tooling issues:
- Node version: XX  
- Platform:  

Others:

xelaint commented 4 years ago

UI is not complete, so I'm reopening this.

griest024 commented 5 months ago

The radio set component should support vertical or horizontal layout of child radios