From 3fc2a043fa10b33eaea1e5b49efd72bae5122923 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 7 Sep 2022 16:02:25 +0200 Subject: [PATCH] chore(presets): handle `radio` and `checkbox` dark mode --- src/runtime/presets/default.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/presets/default.ts b/src/runtime/presets/default.ts index d30ea373..69e7aed7 100644 --- a/src/runtime/presets/default.ts +++ b/src/runtime/presets/default.ts @@ -220,7 +220,7 @@ export default (variantColors: string[]) => { const radio = { wrapper: 'relative flex items-start', - base: 'h-4 w-4 text-primary-600 focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 focus:ring-offset-white dark:focus:ring-offset-black u-border-gray-300 dark:checked:border-primary-600 disabled:opacity-50 disabled:cursor-not-allowed', + base: 'h-4 w-4 text-primary-600 focus:ring-2 focus:ring-offset-2 u-bg-white dark:checked:bg-current dark:checked:border-transparent focus:ring-primary-500 focus:ring-offset-white dark:focus:ring-offset-black u-border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed', label: 'font-medium u-text-gray-700', required: 'text-red-400', help: 'u-text-gray-500'