From 3c89d6b2c5ad5cb0081c4607660760f7460a585e Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 17 Apr 2024 16:23:54 +0200 Subject: [PATCH] fix(Checkbox): reduce icon size --- src/runtime/components/Checkbox.vue | 2 +- src/theme/checkbox.ts | 4 ++-- test/components/__snapshots__/Checkbox.spec.ts.snap | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/runtime/components/Checkbox.vue b/src/runtime/components/Checkbox.vue index a781c58b..b2458677 100644 --- a/src/runtime/components/Checkbox.vue +++ b/src/runtime/components/Checkbox.vue @@ -18,8 +18,8 @@ export interface CheckboxProps extends Omit diff --git a/src/theme/checkbox.ts b/src/theme/checkbox.ts index edd0c676..b0db6428 100644 --- a/src/theme/checkbox.ts +++ b/src/theme/checkbox.ts @@ -4,8 +4,8 @@ export default (config: { colors: string[] }) => ({ base: 'shrink-0 text-white dark:text-gray-900 rounded ring ring-inset ring-gray-300 dark:ring-gray-700 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2', container: 'flex items-center', wrapper: 'ms-2', - indicator: 'flex', - icon: 'size-full', + indicator: 'flex items-center justify-center', + icon: 'size-10/12', label: 'block font-medium text-gray-700 dark:text-gray-200', description: 'text-gray-500 dark:text-gray-400' }, diff --git a/test/components/__snapshots__/Checkbox.spec.ts.snap b/test/components/__snapshots__/Checkbox.spec.ts.snap index a2d00e68..0d5d2398 100644 --- a/test/components/__snapshots__/Checkbox.spec.ts.snap +++ b/test/components/__snapshots__/Checkbox.spec.ts.snap @@ -46,7 +46,7 @@ exports[`Checkbox > renders with color red correctly 1`] = ` exports[`Checkbox > renders with defaultValue correctly 1`] = ` "
-
+
@@ -114,7 +114,7 @@ exports[`Checkbox > renders with id correctly 1`] = ` exports[`Checkbox > renders with indeterminate correctly 1`] = ` "
-
+
@@ -123,7 +123,7 @@ exports[`Checkbox > renders with indeterminate correctly 1`] = ` exports[`Checkbox > renders with indeterminateIcon correctly 1`] = ` "
-
+