Skip to content

Commit

Permalink
docs(radiobuttongroup): provide unique names for each story (#16356)
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones authored May 13, 2024
1 parent e84ae33 commit 28393e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/FormGroup/FormGroup.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Default = () => (
<TextInput id="two" labelText="Last Name" />
<RadioButtonGroup
legendText="Radio button heading"
name="radio-button-group"
name="formgroup-default-radio-button-group"
defaultSelected="radio-1">
<RadioButton labelText="Option 1" value="radio-1" id="radio-1" />
<RadioButton labelText="Option 2" value="radio-2" id="radio-2" />
Expand All @@ -65,7 +65,7 @@ export const Playground = (args) => (
<TextInput id="two" labelText="Last Name" />
<RadioButtonGroup
legendText="Radio button heading"
name="radio-button-group"
name="formgroup-playground-radio-button-group"
defaultSelected="radio-1">
<RadioButton labelText="Option 1" value="radio-1" id="radio-1" />
<RadioButton labelText="Option 2" value="radio-2" id="radio-2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default {

export const Default = () => {
return (
<RadioButtonGroup legendText="Group label" name="radio-button-group">
<RadioButtonGroup
legendText="Group label"
name="radio-button-default-group">
<RadioButton
labelText="Radio button label"
value="radio-1"
Expand All @@ -64,7 +66,7 @@ export const Vertical = () => {
return (
<RadioButtonGroup
legendText="Group label"
name="radio-button-group"
name="radio-button-vertical-group"
defaultSelected="radio-1"
orientation="vertical">
<RadioButton
Expand Down Expand Up @@ -95,7 +97,7 @@ export const Playground = (args) => {
return (
<RadioButtonGroup
legendText="Radio Button group"
name="radio-button-group"
name="radio-button-playground-group"
{...args}>
<RadioButton
labelText="Radio button label"
Expand Down

0 comments on commit 28393e6

Please sign in to comment.