Skip to content

Commit 4ab2f65

Browse files
committed
[chore]Use updated radio/checkbox for yard knobs
1 parent 5ff5c2c commit 4ab2f65

File tree

1 file changed

+13
-4
lines changed
  • documentation-site/components/yard

1 file changed

+13
-4
lines changed

documentation-site/components/yard/knob.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import * as React from "react";
99
import { useStyletron } from "baseui";
1010
import { StyledLink } from "baseui/link";
1111
import { Input } from "baseui/input";
12-
import { Radio, RadioGroup } from "baseui/radio";
13-
import { Checkbox } from "baseui/checkbox";
12+
import { Radio, RadioGroup } from "baseui/radio-v2";
13+
import { Checkbox } from "baseui/checkbox-v2";
1414
import { Select, SIZE } from "baseui/select";
1515
import { StatefulTooltip } from "baseui/tooltip";
1616

@@ -35,7 +35,7 @@ const getTooltip = (description: string, type: string, name: string) => (
3535
const Spacing: React.FC<{ children: React.ReactNode }> = ({ children }) => {
3636
const [css, theme] = useStyletron();
3737
return (
38-
<div className={css({ margin: `${theme.sizing.scale400} 0` })}>
38+
<div className={css({ margin: `${theme.sizing.scale200} 0` })}>
3939
{children}
4040
</div>
4141
);
@@ -135,6 +135,13 @@ const Knob: React.SFC<{
135135
onChange={() => {
136136
globalSet(!val);
137137
}}
138+
overrides={{
139+
Label: {
140+
style: {
141+
fontWeight: 500,
142+
},
143+
},
144+
}}
138145
>
139146
<StatefulTooltip
140147
accessibilityType="tooltip"
@@ -180,7 +187,9 @@ const Knob: React.SFC<{
180187
style: ({ $theme }) => ({
181188
flexWrap: "wrap",
182189
marginTop: 0,
183-
marginBottom: $theme.sizing.scale300,
190+
marginBottom: 0,
191+
rowGap: 0,
192+
columnGap: 0,
184193
}),
185194
},
186195
}}

0 commit comments

Comments
 (0)