Skip to content

Commit d2dc31d

Browse files
lloydaflloyd-fn
andauthored
fix(checkbox): Adds disabled checkbox text color (#97)
Co-authored-by: Lloyd Francis <[email protected]>
1 parent 40b529d commit d2dc31d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Checkbox/Checkbox.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ const Checkbox: FC<CheckboxProps> = props => {
4949
let dynamicLabel: ReactNode = label;
5050

5151
if (typeof label === 'string') {
52-
dynamicLabel = <Text fontSize={size}>{label}</Text>;
52+
dynamicLabel = (
53+
<Text disabled={disabled} fontSize={size}>
54+
{label}
55+
</Text>
56+
);
5357
}
5458

5559
return (

0 commit comments

Comments
 (0)