-
Notifications
You must be signed in to change notification settings - Fork 7
Radio Group Component
Team Name: Design and Web Development (DnD)
Developer: Simeon Simeonoff
Designer: Stefan Ivanov
- Diyan Dimitrov | Date:
- Stefan Ivanov | Date: 21 Jul 2021
- Product Owner: Radoslav Mirchev | Date:
- Radoslav Karaivanov | Date:
Version | Users | Date | Notes |
---|---|---|---|
1 | Simeon Simeonoff | Date 26 Jul 2021 | Initial Proposal |
The igc-radio-group
component unifies one or more igc-radio
buttons. Radio buttons aren't useful on their own and are usually a part of a bigger unit or group (see igc-radio-group) of radio buttons.
The radio group sets common properties on contained radio buttons. The radio group can also dictate the direction and input navigation of its children elements.
- The radio group component should be able to work with elements of type
igc-radio
. - The radio group component should set the disabled property for all children elements.
- The radio group component should set the alignment for all contained radio buttons -
horizontal
orvertical
. - The radio group component should set the label position for all contained radio buttons -
before
orafter
- The radio group component should define input navigation and focus for all contained radio buttons.
Developer stories
- As a developer, I want to be able to set a group as
disabled
so that I can quickly disable all buttons in the group. - As a developer, I want to be able to set the alignment for all radio buttons so that I can quickly change the direction of the group.
- As a developer, I want to be able to set the label position for all radio buttons so that I can quickly change the appearance of the labels in the radio group.
End-user stories
- As an end-user, I want to be able to navigate between radio buttons in a radio group using my keyboard and/or mouse.
- As an end-user, I want to be able to identify the currently focused radio button in a group.
The radio group is only metarepresentational in that it doesn't provide any visual clues as to whether radio buttons are wrapped within one or not. The radio group dictates the end-user behavior of all contained radio buttons.
3.2.1 Standalone Usage:
<igc-radio-group alignment="vertical" label-position="before" disabled>
...
</igc-radio-group>
You should be able to configure the igc-radio
by setting its properties:
Name | Description | Type | Default value | Reflected |
---|---|---|---|---|
labelPosition |
Sets the label position for all radio buttons. | before, after | after |
true |
disabled |
Sets all radio buttons as disabled. | Boolean | false |
true |
alignment |
Sets the alignment for all radio buttons within the group. | vertical, horizontal | vertical |
true |
Name | Description |
---|---|
(default) | The default slot. |
Name | Description |
---|---|
base | The base wrapper containing all igc-radio buttons. |
TBD
N/A