Skip to content

Commit

Permalink
fix: the focus style and antd of the input box validation failure sho…
Browse files Browse the repository at this point in the history
…uld be consistent (#4446)

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

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

* feat(@vben-core/form-ui): Default form validation rules applicable to selector components

* fix: Missing the default required label style for components such as select

* fix: the focus style and antd of the input box validation failure should be consistent

* fix: the focus style and antd of the input box validation failure should be consistent

---------

Co-authored-by: vince <vince292007@gmail.com>
  • Loading branch information
imdap and vince292007 authored Sep 20, 2024
1 parent f9359ed commit ace942e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function createComponentProps(slotProps: Record<string, any>) {
<component
:is="fieldComponent"
:class="{
'border-destructive focus:border-destructive hover:border-destructive/80':
'border-destructive focus:border-destructive hover:border-destructive/80 focus:shadow-[0_0_0_2px_rgba(255,38,5,0.06)]':
isInValid,
}"
v-bind="createComponentProps(slotProps)"
Expand Down

0 comments on commit ace942e

Please sign in to comment.