Skip to content

Commit

Permalink
fix(base-check-box): align items to flex-start (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
denkristoffer authored Dec 2, 2022
1 parent 505074f commit b5bdc78
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-zebras-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@contentful/f36-forms": patch
---

fix(base-check-box): align items to flex-start
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ export default function FormControlCheckboxGroupExample() {
<FormControl as="fieldset" isRequired>
<FormControl.Label as="legend">Checkbox group options</FormControl.Label>
<Checkbox.Group name="checkbox-options">
<Checkbox value="option 1" id="option-1" helpText="Some help text">
<Checkbox
value="option 1"
id="checkbox-option-1"
helpText="Some help text"
>
Option 1
</Checkbox>
<Checkbox value="option 2" id="option-2" helpText="Another help text">
<Checkbox
value="option 2"
id="checkbox-option-2"
helpText="Another help text"
>
Option 2
</Checkbox>
</Checkbox.Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ export default function FormControlRadioGroupExample() {
<FormControl as="fieldset">
<FormControl.Label as="legend">Radio group options</FormControl.Label>
<Radio.Group name="radio-options" defaultValue="option 1">
<Radio value="option 1" id="option-1" helpText="Help text for option 1">
<Radio
value="option 1"
id="radio-option-1"
helpText="Help text for option 1"
>
Option 1
</Radio>
<Radio value="option 2" id="option-2" helpText="Help text for option 2">
<Radio
value="option 2"
id="radio-option-2"
helpText="Help text for option 2"
>
Option 2
</Radio>
</Radio.Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function _BaseCheckbox(
: undefined;

return (
<Flex flexDirection="column" className={className}>
<Flex alignItems="flex-start" flexDirection="column" className={className}>
<Text
as="label"
fontColor="gray900"
Expand Down

1 comment on commit b5bdc78

@vercel
Copy link

@vercel vercel bot commented on b5bdc78 Dec 2, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.