Skip to content

Commit

Permalink
fix: made checkbox stroke thicker (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Nov 28, 2023
2 parents 37290c0 + 3235f57 commit 1d7781a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/atoms/Checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root
{...props}
id={getId()}
>
<CheckboxPrimitive.Indicator className={clsx("flex items-center justify-center text-white")}>
<CheckboxPrimitive.Indicator className={clsx("p-0.5 flex items-center justify-center text-white")}>
<FiCheck className="w-full h-full" />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
Expand Down
5 changes: 5 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ h6 {
@apply tracking-tight;
}

/* See https://github.com/open-sauced/app/issues/2210 */
[role="checkbox"] > [data-state="checked"] > svg {
stroke-width: 5;
}

.auto-grow-input:not(:empty) {
color: black;
}
Expand Down

0 comments on commit 1d7781a

Please sign in to comment.