Skip to content

Commit

Permalink
Allow inline ControlGroup examples to reflow (#898)
Browse files Browse the repository at this point in the history
* wrap inline ControlGroup examples

* reduce rowGap

* Revert "reduce rowGap"

This reverts commit 7ed87de.
  • Loading branch information
joshfarrant authored Jan 22, 2025
1 parent bc24d7a commit e6dd060
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/components/CheckboxGroup/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ 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">
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<FormControl>
<FormControl.Label>Choice one</FormControl.Label>
<Checkbox value="one" />
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/RadioGroup/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ 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">
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<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,7 @@ 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">
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<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,7 @@ 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">
<Stack direction="horizontal" gap="normal" padding="none" flexWrap="wrap">
<FormControl>
<FormControl.Label>0-99</FormControl.Label>
<Radio name="demo" value="one" />
Expand Down

0 comments on commit e6dd060

Please sign in to comment.