Skip to content

Commit 5a7e563

Browse files
authored
Update RadioGroup.features.stories.tsx to no longer use styled-components (#6467)
1 parent e53228c commit 5a7e563

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.ExternalLabel {
2+
border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
3+
padding-bottom: var(--base-size-8);
4+
margin-bottom: var(--base-size-16);
5+
font-size: var(--text-title-size-medium);
6+
}

packages/react/src/RadioGroup/RadioGroup.features.stories.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Radio, RadioGroup, FormControl, Box} from '..'
1+
import {Radio, RadioGroup, FormControl} from '..'
2+
import classes from './RadioGroup.features.stories.module.css'
23

34
export default {
45
title: 'Components/RadioGroup/Features',
@@ -24,17 +25,9 @@ export const VisuallyHiddenLabel = () => (
2425

2526
export const WithExternalLabel = () => (
2627
<>
27-
<Box
28-
id="choiceHeading"
29-
borderBottomWidth="1px"
30-
borderBottomStyle="solid"
31-
borderBottomColor="border.default"
32-
pb={2}
33-
mb={3}
34-
fontSize={3}
35-
>
28+
<div id="choiceHeading" className={classes.ExternalLabel}>
3629
External label
37-
</Box>
30+
</div>
3831
<RadioGroup aria-labelledby="choiceHeading" name="defaultRadioGroup">
3932
<FormControl>
4033
<Radio value="one" />

0 commit comments

Comments
 (0)