Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(RadioGroup.jsx): Inline prop arranges elements horizontally #596

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .loki/reference/chrome_iphone7_Accordion_All_Items_Closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Accordion_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Accordion_Last_Item_Opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Default_Without_Close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Default_Without_Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Skin_Error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Skin_Primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Skin_Success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Alert_Skin_Warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_AutoComplete_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_AutoComplete_With_Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_AutoComplete_With_Error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_AutoComplete_With_Helper_Text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Avatar_All_Props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Avatar_Text_And_Toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_High_Number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Inverted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Skin_Error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Skin_Primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Skin_Secondary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Badge_Skin_Success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Breadcrumbs_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Button_Error_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Error_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Error_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_Neutral_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Neutral_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Neutral_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Full.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Icon_Info.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Size_Large.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Size_Small.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Size_X_Large.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Size_X_Small.png
Binary file modified .loki/reference/chrome_iphone7_Button_Primary_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_Secondary_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Secondary_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Secondary_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_Success_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Success_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Success_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_Warning_Default.png
Binary file modified .loki/reference/chrome_iphone7_Button_Warning_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Button_Warning_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_Button_With_Icon.png
Binary file modified .loki/reference/chrome_iphone7_Card_Advanced.png
Binary file modified .loki/reference/chrome_iphone7_Card_Job_Ad.png
Binary file modified .loki/reference/chrome_iphone7_Card_Simple.png
Binary file modified .loki/reference/chrome_iphone7_Card_Simple_With_Opacity.png
Binary file modified .loki/reference/chrome_iphone7_Carousel_Large_Cards.png
Binary file modified .loki/reference/chrome_iphone7_Carousel_Medium_Cards.png
Binary file modified .loki/reference/chrome_iphone7_ChargeBar_Neutral.png
Binary file modified .loki/reference/chrome_iphone7_ChargeBar_Primary.png
Binary file modified .loki/reference/chrome_iphone7_ChargeBar_Secondary.png
Binary file modified .loki/reference/chrome_iphone7_ChargeBar_Success.png
Binary file modified .loki/reference/chrome_iphone7_Checkbox_Error.png
Binary file modified .loki/reference/chrome_iphone7_Checkbox_Label.png
Binary file modified .loki/reference/chrome_iphone7_Checkbox_Value.png
Binary file modified .loki/reference/chrome_iphone7_Dialog_With_Content.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_Default.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_Required.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Error.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Helper_Text.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Images.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Label.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Placeholder.png
Binary file modified .loki/reference/chrome_iphone7_DropdownLight_With_Skin.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Autocomplete.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Dark.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Default.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Error.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_Required.png
Binary file modified .loki/reference/chrome_iphone7_Dropdown_With_Images.png
Binary file modified .loki/reference/chrome_iphone7_Grid_Hide.png
Binary file modified .loki/reference/chrome_iphone7_Grid_Horizontal.png
Binary file modified .loki/reference/chrome_iphone7_Grid_Mobile_Desktop.png
Binary file modified .loki/reference/chrome_iphone7_Grid_No_Gutters.png
Binary file modified .loki/reference/chrome_iphone7_Grid_Offset.png
Binary file modified .loki/reference/chrome_iphone7_Input_Dark_With_Default_Value.png
Binary file modified .loki/reference/chrome_iphone7_Input_Dark_With_Label.png
Binary file modified .loki/reference/chrome_iphone7_Input_Disabled_With_Text.png
Binary file modified .loki/reference/chrome_iphone7_Input_Error.png
Binary file modified .loki/reference/chrome_iphone7_Input_Error_With_Dark_Skin.png
Binary file modified .loki/reference/chrome_iphone7_Input_Helper.png
Binary file modified .loki/reference/chrome_iphone7_Input_Helper_With_Dark_Skin.png
Binary file modified .loki/reference/chrome_iphone7_Input_With_Default_Value.png
Binary file modified .loki/reference/chrome_iphone7_Input_With_Label.png
Binary file modified .loki/reference/chrome_iphone7_Input_With_Placeholder.png
Binary file modified .loki/reference/chrome_iphone7_Link_Dark.png
Binary file modified .loki/reference/chrome_iphone7_Link_Dark_Without_Underline.png
Binary file modified .loki/reference/chrome_iphone7_Link_Default.png
Binary file modified .loki/reference/chrome_iphone7_Link_Default_Without_Underline.png
Binary file modified .loki/reference/chrome_iphone7_List_Ordered.png
Binary file modified .loki/reference/chrome_iphone7_List_Ordered_Inline.png
Binary file modified .loki/reference/chrome_iphone7_List_Ordered_With_Icons.png
Binary file modified .loki/reference/chrome_iphone7_List_Unordered.png
Binary file modified .loki/reference/chrome_iphone7_List_Unordered_Inline.png
Binary file modified .loki/reference/chrome_iphone7_List_Unordered_With_Bullets.png
Binary file modified .loki/reference/chrome_iphone7_Menu_Default.png
Binary file modified .loki/reference/chrome_iphone7_Modal_Simple.png
Binary file modified .loki/reference/chrome_iphone7_Modal_Simple_With_Input.png
Binary file modified .loki/reference/chrome_iphone7_Modal_With_Button_Actions.png
Binary file modified .loki/reference/chrome_iphone7_Pagination_Basic.png
Binary file modified .loki/reference/chrome_iphone7_Pagination_Helper_Text.png
Binary file modified .loki/reference/chrome_iphone7_Pagination_Without_Total_Pages.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Error_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Error_Left.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Error_Right.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Error_Top.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Neutral_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Neutral_Left.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Neutral_Right.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Neutral_Top.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Primary_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Primary_Left.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Primary_Right.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Primary_Top.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Success_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Success_Left.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Success_Right.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Success_Top.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Warning_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Warning_Left.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Warning_Right.png
Binary file modified .loki/reference/chrome_iphone7_Popover_Warning_Top.png
Binary file modified .loki/reference/chrome_iphone7_ProgressBar_Neutral.png
Binary file modified .loki/reference/chrome_iphone7_ProgressBar_Neutral_With_Label.png
Binary file modified .loki/reference/chrome_iphone7_ProgressBar_Primary_With_Label.png
Binary file modified .loki/reference/chrome_iphone7_RadioGroup_Default.png
Binary file modified .loki/reference/chrome_iphone7_RadioGroup_Disabled.png
Binary file modified .loki/reference/chrome_iphone7_RadioGroup_Error.png
Binary file modified .loki/reference/chrome_iphone7_RangeSlider_Default.png
Binary file modified .loki/reference/chrome_iphone7_RangeSlider_Min_Max.png
Binary file modified .loki/reference/chrome_iphone7_RangeSlider_Range.png
Binary file modified .loki/reference/chrome_iphone7_RangeSlider_Tip_Formatter.png
Binary file modified .loki/reference/chrome_iphone7_RangeSlider_With_Marks.png
Binary file modified .loki/reference/chrome_iphone7_Score_Default.png
Binary file modified .loki/reference/chrome_iphone7_Score_With_Skin.png
Binary file modified .loki/reference/chrome_iphone7_Score_Without_Rouded.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Default.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Error.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Error_With_Callback.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Primary.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Primary_Without_Icon.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Success.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Success_With_Callback.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Warning.png
Binary file modified .loki/reference/chrome_iphone7_SnackBar_Warning_With_Callback.png
Binary file modified .loki/reference/chrome_iphone7_Stepper_Stepper_With_Total_3.png
Binary file modified .loki/reference/chrome_iphone7_Stepper_Stepper_With_Total_4.png
Binary file modified .loki/reference/chrome_iphone7_Stepper_Stepper_With_Total_5.png
Binary file modified .loki/reference/chrome_iphone7_Stepper_Stepper_With_Total_6.png
Binary file modified .loki/reference/chrome_iphone7_TabbedView_Default.png
Binary file modified .loki/reference/chrome_iphone7_TabbedView_Fluid.png
Binary file modified .loki/reference/chrome_iphone7_TabbedView_Primary.png
Binary file modified .loki/reference/chrome_iphone7_Tag_Closable.png
Binary file modified .loki/reference/chrome_iphone7_Tag_Inverted.png
Binary file modified .loki/reference/chrome_iphone7_Tag_Sizes.png
Binary file modified .loki/reference/chrome_iphone7_Tag_Skin.png
Binary file modified .loki/reference/chrome_iphone7_Tag_Stroked.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Helper_Text.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Label.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Label_With_Dark_Skin.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Placeholder.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Pre_Valued.png
Binary file modified .loki/reference/chrome_iphone7_TextArea_Required.png
Binary file modified .loki/reference/chrome_iphone7_Tooltip_Bottom.png
Binary file modified .loki/reference/chrome_iphone7_Tooltip_Left.png
Binary file modified .loki/reference/chrome_iphone7_Tooltip_Multiline.png
Binary file modified .loki/reference/chrome_iphone7_Tooltip_Right.png
Binary file modified .loki/reference/chrome_iphone7_Tooltip_Top.png
Binary file modified .loki/reference/chrome_laptop_Alert_Default_Without_Close.png
Binary file modified .loki/reference/chrome_laptop_Alert_Skin_Error.png
Binary file modified .loki/reference/chrome_laptop_Alert_Skin_Warning.png
Binary file modified .loki/reference/chrome_laptop_AutoComplete_With_Error.png
Binary file modified .loki/reference/chrome_laptop_DropdownLight_Required.png
Binary file modified .loki/reference/chrome_laptop_DropdownLight_With_Error.png
Binary file modified .loki/reference/chrome_laptop_DropdownLight_With_Helper_Text.png
Binary file modified .loki/reference/chrome_laptop_Dropdown_Default.png
Binary file modified .loki/reference/chrome_laptop_Dropdown_Required.png
Binary file modified .loki/reference/chrome_laptop_Input_Disabled_With_Text.png
Binary file modified .loki/reference/chrome_laptop_Pagination_Helper_Text.png
Binary file modified .loki/reference/chrome_laptop_Tag_Stroked.png
Binary file modified .loki/reference/chrome_laptop_TextArea_Helper_Text.png
Binary file modified .loki/reference/chrome_laptop_TextArea_Required.png
19 changes: 18 additions & 1 deletion components/RadioGroup/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ const RadioLabel = styled(Label)`
}
}

${({
inline,
theme: {
spacing: { medium },
},
}) =>
inline &&
`
display: inline-flex;
margin-right: ${medium}px;

&:last-child {
margin-right: 0;
}`}

&:hover,
&:focus {
${RadioMark} {
Expand Down Expand Up @@ -231,9 +246,10 @@ const Radio = ({
value,
theme = { colors, spacing },
required = false,
inline = false,
...rest
}) => (
<RadioLabel error={error} disabled={disabled} theme={theme}>
<RadioLabel inline={inline} error={error} disabled={disabled} theme={theme}>
<HiddenInput
type="radio"
disabled={disabled}
Expand All @@ -252,6 +268,7 @@ Radio.displayName = 'RadioGroup.Radio';
Radio.propTypes = {
disabled: PropTypes.bool,
error: PropTypes.bool,
inline: PropTypes.bool,
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
label: PropTypes.string,
value: PropTypes.string.isRequired,
Expand Down
13 changes: 13 additions & 0 deletions components/RadioGroup/RadioGroup.unit.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ describe('<RadioGroup />', () => {
);
expect(container.firstChild).toMatchSnapshot();
});

it('with inline', () => {
const options = [
{ value: 'Foo', label: 'Foo' },
{ value: 'Bar', label: 'Bar' },
{ value: 'Baz', label: 'Baz' },
];

const { container } = render(
<RadioGroup inline name="foo" options={options} />,
);
expect(container.firstChild).toMatchSnapshot();
});
});

_childrenTest(RadioGroup.Radio);
Expand Down
162 changes: 162 additions & 0 deletions components/RadioGroup/__snapshots__/RadioGroup.unit.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,168 @@ exports[`<RadioGroup /> snapshot with an error 1`] = `
</div>
`;

exports[`<RadioGroup /> snapshot with inline 1`] = `
.c2 {
display: block;
margin-bottom: 5px;
}

.c0 {
position: relative;
margin-bottom: 20px;
min-width: 250px;
width: 100%;
color: #424242;
}

.c5 {
border: 0;
height: 0;
margin: 0;
opacity: 0;
overflow: hidden;
padding: 0;
position: absolute;
width: 0;
}

.c7 {
border-radius: 50%;
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 24px;
position: relative;
top: 6px;
width: 24px;
background-color: #ffffff;
border: 2px solid #999999;
margin-right: 8px;
}

.c7:after {
border-radius: 50%;
content: '';
display: none;
height: 60%;
left: 20%;
position: absolute;
top: 20%;
width: 60%;
background-color: #1250C4;
}

.c3 {
-webkit-align-items: baseline;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
margin-right: 16px;
}

.c3 .c4:checked ~ .c6 {
border-color: #1250C4;
}

.c3 .c4:checked ~ .c6:after {
background-color: #1250C4;
display: block;
}

.c3 .c4:focus ~ .c6 {
border-color: #1250C4;
box-shadow: 0px 3px 5px -1px rgba(18,80,196,0.2),0px 5px 8px 0px rgba(18,80,196,0.14),0px 1px 14px 0px rgba(18,80,196,0.12);
}

.c3:last-child {
margin-right: 0;
}

.c3:hover .c6,
.c3:focus .c6 {
border-color: #1250C4;
box-shadow: 0px 3px 5px -1px rgba(18,80,196,0.2),0px 5px 8px 0px rgba(18,80,196,0.14),0px 1px 14px 0px rgba(18,80,196,0.12);
}

.c3 .c4:checked:disabled ~ .c6 {
background-color: #999999;
border-color: #999999;
box-shadow: inset 0 0 0 3.5px #ffffff;
}

.c1 {
position: relative;
}

<div
class="c0 c1"
role="radiogroup"
>
<label
class="c2 c3"
>
<input
class="c4 c5"
name="foo"
type="radio"
value="Foo"
/>
<span
class="c6 c7"
/>
<span>
Foo
</span>
</label>
<label
class="c2 c3"
>
<input
class="c4 c5"
name="foo"
type="radio"
value="Bar"
/>
<span
class="c6 c7"
/>
<span>
Bar
</span>
</label>
<label
class="c2 c3"
>
<input
class="c4 c5"
name="foo"
type="radio"
value="Baz"
/>
<span
class="c6 c7"
/>
<span>
Baz
</span>
</label>
</div>
`;

exports[`<RadioGroup /> snapshot with required 1`] = `
.c2 {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion stories/RadioGroup/RadioGroup.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Button.args = {

export const Inline = Template.bind({});
Inline.args = {
...Button.args,
options: buttonOptions,
inline: true,
};