Skip to content

Commit 842ff87

Browse files
committed
v5.0.66
1 parent 0251b10 commit 842ff87

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.0.65",
3+
"version": "5.0.66",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/checkbox/checkbox.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,12 @@ export const Checkbox = (
3636
alignItems="center"
3737
gap={1}
3838
cursor={disabled ? "auto" : "pointer"}
39-
rowReverse={labelPosition === "right"}
39+
rowReverse={labelPosition === "left"}
4040
data-testid="checkbox"
4141
disabled={disabled}
4242
{...rest}
4343
onClick={onClick}
4444
>
45-
{label && (
46-
<Text as={Label} opacity={disabled ? 0.4 : 1} {...labelProps}>
47-
{label}
48-
</Text>
49-
)}
5045
<Box width="16px" height="16px">
5146
<HiddenCheckboxInput
5247
data-testid="checkbox-input"
@@ -69,6 +64,11 @@ export const Checkbox = (
6964
)}
7065
</StyledCheckbox>
7166
</Box>
67+
{label && (
68+
<Text as={Label} opacity={disabled ? 0.4 : 1} {...labelProps}>
69+
{label}
70+
</Text>
71+
)}
7272
</Flex>
7373
)
7474
}

0 commit comments

Comments
 (0)