Browse Source

fix: hover border style same as antd style when validate error (#4409)

* fix: hover border style same as antd style when validate error

* fix: hover border style same as antd style when validate error

---------
LinaBell 6 months ago
parent
commit
f25783933d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

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

@@ -264,7 +264,8 @@ function createComponentProps(slotProps: Record<string, any>) {
             <component
               :is="fieldComponent"
               :class="{
-                'border-destructive focus:border-destructive': isInValid,
+                'border-destructive focus:border-destructive hover:border-destructive/80':
+                  isInValid,
               }"
               v-bind="createComponentProps(slotProps)"
               :disabled="shouldDisabled"