Skip to content

Commit

Permalink
chore: minor changes to style and behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
finhaa committed Mar 22, 2024
1 parent 7f79270 commit 5ca471b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ const Radio: FC<Props> = ({
setInternalChecked(checked);
}, [checked]);

useEffect(() => {
if (disabled && checked) setInternalChecked(false);
}, [disabled, checked]);

return (
<Wrapper disabled={!!disabled} style={style}>
<Input
Expand Down
5 changes: 5 additions & 0 deletions src/components/Radio/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ export const Input = styled.input`
&:checked + label {
color: ${textMain};
}
&:disabled + label {
cursor: initial;
}
`;

export const Label = styled.label`
color: ${textMain}70;
cursor: pointer;
&:before,
&:after {
Expand Down

0 comments on commit 5ca471b

Please sign in to comment.