Skip to content

Commit f9aee91

Browse files
authored
fix: use text instead of primary color for Checkbox.Item label (#2429)
1 parent 82719de commit f9aee91

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/Checkbox/CheckboxItem.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ const CheckboxItem = ({
105105
return (
106106
<TouchableRipple onPress={onPress} testID={testID}>
107107
<View style={[styles.container, style]} pointerEvents="none">
108-
<Text
109-
style={[styles.label, { color: theme.colors.primary }, labelStyle]}
110-
>
108+
<Text style={[styles.label, { color: theme.colors.text }, labelStyle]}>
111109
{label}
112110
</Text>
113111
{checkbox}

src/components/__tests__/Checkbox/__snapshots__/CheckboxItem.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports[`can render the Android checkbox on different platforms 1`] = `
4747
"fontSize": 16,
4848
},
4949
Object {
50-
"color": "#6200ee",
50+
"color": "#000000",
5151
},
5252
undefined,
5353
],
@@ -215,7 +215,7 @@ exports[`can render the iOS checkbox on different platforms 1`] = `
215215
"fontSize": 16,
216216
},
217217
Object {
218-
"color": "#6200ee",
218+
"color": "#000000",
219219
},
220220
undefined,
221221
],
@@ -349,7 +349,7 @@ exports[`renders unchecked 1`] = `
349349
"fontSize": 16,
350350
},
351351
Object {
352-
"color": "#6200ee",
352+
"color": "#000000",
353353
},
354354
undefined,
355355
],

0 commit comments

Comments
 (0)