Skip to content

Commit

Permalink
[form-builder] Fix spacing and font-size of RadioSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Feb 4, 2021
1 parent 011bf9f commit 4549411
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/@sanity/form-builder/src/inputs/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ const RadioSelect = React.forwardRef(function RadioSelect(

const Layout = direction === 'horizontal' ? Inline : Stack
return (
<Card border padding={4} radius={1}>
<Layout space={4} role="group">
<Card border padding={3} radius={1}>
<Layout space={3} role="group">
{items.map((item, index) => (
<Flex key={index} as="label" align="center">
<Radio
Expand All @@ -135,8 +135,10 @@ const RadioSelect = React.forwardRef(function RadioSelect(
customValidity={customValidity}
name={inputId}
/>
<Box marginLeft={3}>
<Text>{item.title}</Text>
<Box marginLeft={2}>
<Text size={1} weight="semibold">
{item.title}
</Text>
</Box>
</Flex>
))}
Expand Down

2 comments on commit 4549411

@vercel
Copy link

@vercel vercel bot commented on 4549411 Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio.now.sh
test-studio-git-next.sanity.build
test-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 4549411 Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio-git-next.sanity.build
perf-studio.sanity.build

Please sign in to comment.