From ec6192d32b6a6806e2063575a6fa877d720885d9 Mon Sep 17 00:00:00 2001 From: p-sw Date: Fri, 12 Jul 2024 02:14:34 +0900 Subject: [PATCH] refactor(Checkbox): remove check icon --- packages/react/components/Checkbox.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/react/components/Checkbox.tsx b/packages/react/components/Checkbox.tsx index 695be34..6a8ced0 100644 --- a/packages/react/components/Checkbox.tsx +++ b/packages/react/components/Checkbox.tsx @@ -18,12 +18,10 @@ const checkboxColors = { disabledCheckedHover: "has-[input[type='checkbox']:disabled:checked]:hover:bg-neutral-300 dark:has-[input[type='checkbox']:disabled:checked]:hover:bg-neutral-700", }, - checkmark: - "text-black dark:text-white has-[input[type=checkbox]:disabled]:text-neutral-400 dark:has-[input[type=checkbox]:disabled]:text-neutral-500", }; const [checkboxVariant, resolveCheckboxVariantProps] = vcn({ - base: `inline-block rounded-md ${checkboxColors.checkmark} ${checkboxColors.background.disabled} ${checkboxColors.background.default} ${checkboxColors.background.hover} ${checkboxColors.background.checked} ${checkboxColors.background.checkedHover} ${checkboxColors.background.disabledChecked} ${checkboxColors.background.disabledCheckedHover} has-[input[type="checkbox"]:disabled]:cursor-not-allowed transition-colors duration-75 ease-in-out`, + base: `inline-block rounded-md ${checkboxColors.background.disabled} ${checkboxColors.background.default} ${checkboxColors.background.hover} ${checkboxColors.background.checked} ${checkboxColors.background.checkedHover} ${checkboxColors.background.disabledChecked} ${checkboxColors.background.disabledCheckedHover} has-[input[type="checkbox"]:disabled]:cursor-not-allowed transition-colors duration-75 ease-in-out`, variants: { size: { base: "size-[1em] p-0 [&>svg]:size-[1em]", @@ -92,19 +90,6 @@ const Checkbox = React.forwardRef( } }} /> - - checked - - );