Skip to content

Commit

Permalink
refactor(Radio): update styling (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Lienard authored Aug 1, 2023
1 parent 90e9079 commit 0e8a90e
Show file tree
Hide file tree
Showing 19 changed files with 3,227 additions and 2,279 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-jars-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ultraviolet/ui': minor
---

Update styling of Radio component
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@ export const Playground: StoryFn<typeof Form> = args => {
I&apos;m disabling the field name to remove validation
</Checkbox>
<Stack gap={2} direction="row">
<RadioField name="choice" value="1" required>
1
</RadioField>
<RadioField name="choice" value="2" required>
2
</RadioField>
<RadioField name="choice" value="3" required>
3
</RadioField>
<RadioField name="choice" value="1" required label="1" />
<RadioField name="choice" value="2" required label="2" />
<RadioField name="choice" value="3" required label="3" />
</Stack>

<Stack gap={2} direction="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Form } from '../../Form'

export const Checked: StoryFn<FormProps> = ({ errors }) => (
<Form onRawSubmit={() => {}} errors={errors} initialValues={{ foo: 'bar' }}>
<RadioField name="foo" value="bar">
Checked Radio
</RadioField>
<RadioField name="foo" value="bar" label="Checked Radio" />
</Form>
)
Loading

0 comments on commit 0e8a90e

Please sign in to comment.