Skip to content

Commit

Permalink
reduce rowGap
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Jan 21, 2025
1 parent b86fcad commit 7ed87de
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion apps/docs/content/components/CheckboxGroup/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ When space is limited, checkboxes can be arranged horizontally using the [Stack]
<CheckboxGroup.Caption>
Some inline checkboxes with a visually hidden label
</CheckboxGroup.Caption>
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<Stack
direction="horizontal"
gap="normal"
padding="none"
flexWrap="wrap"
style={{rowGap: 'var(--base-size-8)'}}
>
<FormControl>
<FormControl.Label>Choice one</FormControl.Label>
<Checkbox value="one" />
Expand Down
8 changes: 7 additions & 1 deletion apps/docs/content/components/RadioGroup/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ When space is limited, radio inputs can be arranged horizontally using the [Stac
<CheckboxGroup.Caption>
Some inline radio inputs with a visually hidden label
</CheckboxGroup.Caption>
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<Stack
direction="horizontal"
gap="normal"
padding="none"
flexWrap="wrap"
style={{rowGap: 'var(--base-size-8)'}}
>
<FormControl>
<FormControl.Label>Last 7 days</FormControl.Label>
<Radio name="period" value="week" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ export const Inline: Story = {
<CheckboxGroup.Label visuallyHidden={labelVisuallyHidden}>{labelChildren}</CheckboxGroup.Label>
{captionChildren ? <CheckboxGroup.Caption>{captionChildren}</CheckboxGroup.Caption> : null}

<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<Stack
direction="horizontal"
gap="normal"
padding="none"
flexWrap="wrap"
style={{rowGap: 'var(--base-size-8)'}}
>
<FormControl>
<FormControl.Label>Choice one</FormControl.Label>
<Checkbox value="one" defaultChecked />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ export const Inline: Story = {
<RadioGroup.Label visuallyHidden={labelVisuallyHidden}>{labelChildren}</RadioGroup.Label>
{captionChildren ? <RadioGroup.Caption>{captionChildren}</RadioGroup.Caption> : null}

<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<Stack
direction="horizontal"
gap="normal"
padding="none"
flexWrap="wrap"
style={{rowGap: 'var(--base-size-8)'}}
>
<FormControl>
<FormControl.Label>0-99</FormControl.Label>
<Radio name="demo" value="one" />
Expand Down

0 comments on commit 7ed87de

Please sign in to comment.