Browse Source

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

pull/5763/head
Netfan 1 year ago
committed by GitHub
parent
commit
39888cebaa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
  2. 4
      packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue
  3. 5
      packages/@core/ui-kit/shadcn-ui/src/ui/input/Input.vue

2
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@ -321,7 +321,7 @@ onUnmounted(() => {
<VbenRenderContent :content="label" />
</template>
</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)">
<FormControl :class="cn(controlClass)">
<slot

4
packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue

@ -32,4 +32,8 @@ const props = defineProps<Props>();
button[role='combobox'][data-placeholder] {
color: hsl(var(--muted-foreground));
}
button {
--ring: var(--primary);
}
</style>

5
packages/@core/ui-kit/shadcn-ui/src/ui/input/Input.vue

@ -30,3 +30,8 @@ const modelValue = useVModel(props, 'modelValue', emits, {
"
/>
</template>
<style lang="scss" scoped>
input {
--ring: var(--primary);
}
</style>

Loading…
Cancel
Save