Skip to content

Commit

Permalink
(#0) Checkbox, Radio 액티브 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Jan 27, 2024
1 parent 094bf87 commit dfb402c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbodek-ui",
"version": "0.0.151",
"version": "0.0.152",
"type": "module",
"author": "Bbodek",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Checkbox = forwardRef((
return (
<label onClick = {(e: MouseEvent<HTMLLabelElement>) => e.stopPropagation()} htmlFor = {id} className = {clsx("cursor-pointer", label && "flex items-center gap-2.5", className)}>
<input ref = {ref} id = {id} type = "checkbox" className = "peer hidden" {...props}/>
<div className = {`${CHECKBOX_SVG_SIZE[svgSize]} [&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-gray-06`}>
<div className = {`${CHECKBOX_SVG_SIZE[svgSize]} [&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-primary-03`}>
{svg}
</div>
{label && <Typography text = {label} />}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Radio = forwardRef((
return (
<label htmlFor = {id} className = {clsx("cursor-pointer", label && "flex items-center gap-x-2", className)}>
<input ref = {ref} id = {id} type = "radio" className = "peer hidden" {...props}/>
<div className = {"[&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-gray-06"}>
<div className = {"[&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-primary-03"}>
<RadioButton size = {svgSize} weight = "fill"/>
</div>
{label && <Typography text = {label} />}
Expand Down

0 comments on commit dfb402c

Please sign in to comment.