Skip to content

Commit

Permalink
refactor: update checkbox label sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddenizakpinar committed Jun 26, 2023
1 parent e53e679 commit 128fe40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/components/ui/Checkbox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cn } from '@utils/common';
import { FC, useId } from 'react';

type CheckboxProps = {
Expand All @@ -10,7 +9,7 @@ type CheckboxProps = {
const Checkbox: FC<CheckboxProps> = ({ label, checked, onChange }) => {
const id = useId();
return (
<div className={cn('flex cursor-pointer items-center gap-2')}>
<div className="flex cursor-pointer items-center">
<input
className="h-5 w-5 cursor-pointer rounded-[4px] text-primary-100 outline-none transition-all hover:text-primary-200 focus:ring-0"
checked={checked}
Expand All @@ -19,7 +18,7 @@ const Checkbox: FC<CheckboxProps> = ({ label, checked, onChange }) => {
id={id}
/>
{label && (
<label className="hover: cursor-pointer select-none" htmlFor={id}>
<label className="hover: cursor-pointer select-none pl-2" htmlFor={id}>
{label}
</label>
)}
Expand Down

0 comments on commit 128fe40

Please sign in to comment.