Skip to content

Commit 5f7684b

Browse files
authored
fix alignment of Option with checkbox and description (#1267)
1 parent 2f3717b commit 5f7684b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/Select/Option.jsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ import './Option.scss';
1717
const Option = forwardRef(({ indeterminate, ...props }, ref) => (
1818
<components.Option {...props}>
1919
<div className="Option">
20-
<CheckboxButton
21-
checked={props.isSelected}
22-
className="Checkbox"
23-
id={props.label}
24-
indeterminate={indeterminate}
25-
ref={ref}
26-
onChange={() => null}
27-
/>
20+
<div className="CheckboxContainer">
21+
<CheckboxButton
22+
checked={props.isSelected}
23+
className="Checkbox"
24+
id={props.label}
25+
indeterminate={indeterminate}
26+
ref={ref}
27+
onChange={() => null}
28+
/>
29+
</div>
2830
<div className="TitleDescriptionContainer">
2931
<label
3032
className={classNames({

src/Select/Option.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.Option {
22
display: flex;
3-
align-items: center;
4-
3+
54
.Checkbox {
5+
margin-top: var(--synth-spacing-1);
66
margin-right: var(--synth-spacing-3);
77
}
88

0 commit comments

Comments
 (0)