fix(stage-ui): checkbox
This commit is contained in:
@@ -11,7 +11,7 @@ const modelValue = defineModel<boolean>({ required: true })
|
||||
outline="focus-within:none"
|
||||
flex="~"
|
||||
border="neutral-300 dark:neutral-700 data-[state=checked]:primary-200 data-[state=unchecked]:neutral-300 focus-within:neutral-800"
|
||||
bg="data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 dark:data-[state=checked]:primary-700 dark:data-[state=unchecked]:neutral-800"
|
||||
bg="data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 data-[state=checked]:dark:primary-400/80 dark:data-[state=unchecked]:neutral-800"
|
||||
relative h-7 w="12.5" rounded-full
|
||||
shadow="sm focus-within:shadow-neutral-800 focus-within:[0_0_0_1px] "
|
||||
>
|
||||
|
||||
@@ -13,6 +13,7 @@ onMounted(() => {
|
||||
const hue = document.documentElement.style.getPropertyValue('--theme-colors-hue')
|
||||
const hueF = Number.parseFloat(hue)
|
||||
themeColorsHue.value = hueF >= 0 && hueF <= 360 ? hueF : DEFAULT_THEME_COLORS_HUE
|
||||
document.documentElement.style.setProperty('--theme-colors-hue', themeColorsHue.value.toString())
|
||||
})
|
||||
|
||||
watch(themeColorsHue, () => {
|
||||
|
||||
Reference in New Issue
Block a user