Commit 39888ceb by Netfan Committed by GitHub

fix: base component focus color in form (#5760)

1 parent efb69fc7
...@@ -321,7 +321,7 @@ onUnmounted(() => { ...@@ -321,7 +321,7 @@ onUnmounted(() => {
<VbenRenderContent :content="label" /> <VbenRenderContent :content="label" />
</template> </template>
</FormLabel> </FormLabel>
<div class="flex-auto overflow-hidden"> <div class="flex-auto overflow-hidden p-[1px]">
<div :class="cn('relative flex w-full items-center', wrapperClass)"> <div :class="cn('relative flex w-full items-center', wrapperClass)">
<FormControl :class="cn(controlClass)"> <FormControl :class="cn(controlClass)">
<slot <slot
......
...@@ -32,4 +32,8 @@ const props = defineProps<Props>(); ...@@ -32,4 +32,8 @@ const props = defineProps<Props>();
button[role='combobox'][data-placeholder] { button[role='combobox'][data-placeholder] {
color: hsl(var(--muted-foreground)); color: hsl(var(--muted-foreground));
} }
button {
--ring: var(--primary);
}
</style> </style>
...@@ -30,3 +30,8 @@ const modelValue = useVModel(props, 'modelValue', emits, { ...@@ -30,3 +30,8 @@ const modelValue = useVModel(props, 'modelValue', emits, {
" "
/> />
</template> </template>
<style lang="scss" scoped>
input {
--ring: var(--primary);
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!