Skip to content

Commit

Permalink
fix alignment of Option with checkbox and description
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbasuil committed Jul 10, 2024
1 parent 2f3717b commit 26a0bf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions src/Select/Option.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ import './Option.scss';
const Option = forwardRef(({ indeterminate, ...props }, ref) => (
<components.Option {...props}>
<div className="Option">
<CheckboxButton
checked={props.isSelected}
className="Checkbox"
id={props.label}
indeterminate={indeterminate}
ref={ref}
onChange={() => null}
/>
<div className="CheckboxContainer">
<CheckboxButton
checked={props.isSelected}
className="Checkbox"
id={props.label}
indeterminate={indeterminate}
ref={ref}
onChange={() => null}
/>
</div>
<div className="TitleDescriptionContainer">
<label
className={classNames({
Expand Down
4 changes: 2 additions & 2 deletions src/Select/Option.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.Option {
display: flex;
align-items: center;


.Checkbox {
margin-top: var(--synth-spacing-1);
margin-right: var(--synth-spacing-3);
}

Expand Down

0 comments on commit 26a0bf5

Please sign in to comment.