Skip to content

Commit 920ad63

Browse files
fix: radio group prop name fixed (#946)
* fix: radio group prop name fixed * fix: updated stories to add sample test describedby id --------- Co-authored-by: ypatadia-eightfold <[email protected]>
1 parent 0933ddf commit 920ad63

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/RadioButton/RadioButton.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ const RadioGroup_Story: ComponentStory<typeof RadioGroup> = (args) => {
200200
{...args}
201201
value={selected1}
202202
onChange={radioChangeGroupHandler}
203+
ariaDescribedBy={'radiodescribedby-Id1'}
203204
/>
204205
);
205206
};
@@ -432,6 +433,7 @@ RadioButton_With_Custom_Label.args = {
432433
RadioGroup_With_Custom_Label.args = {
433434
allowDisabledFocus: false,
434435
ariaLabel: 'Radio Group Custom',
436+
ariaDescribedBy: 'radiodescribedby-Id1',
435437
disabled: false,
436438
items: [1, 2, 3].map((i: number) => ({
437439
ariaLabel: `Radio${i}`,

src/components/RadioButton/RadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const RadioGroup: FC<RadioGroupProps> = React.forwardRef(
115115
{items.map((item: RadioButtonProps) => (
116116
<RadioButton
117117
key={item.value}
118-
aria-describedby={ariaDescribedBy}
118+
ariaDescribedBy={ariaDescribedBy}
119119
allowDisabledFocus={allowDisabledFocus}
120120
configContextProps={configContextProps}
121121
disabled={mergedDisabled}

0 commit comments

Comments
 (0)