diff --git a/.changeset/good-clocks-tickle.md b/.changeset/good-clocks-tickle.md new file mode 100644 index 0000000000..40e6550ca3 --- /dev/null +++ b/.changeset/good-clocks-tickle.md @@ -0,0 +1,5 @@ +--- +"@venusprotocol/evm": patch +--- + +fix border color of RhfSubmitButton when there is an error diff --git a/apps/evm/src/containers/Form/RhfSubmitButton/index.tsx b/apps/evm/src/containers/Form/RhfSubmitButton/index.tsx index d0198bfdac..73573fe217 100644 --- a/apps/evm/src/containers/Form/RhfSubmitButton/index.tsx +++ b/apps/evm/src/containers/Form/RhfSubmitButton/index.tsx @@ -34,7 +34,7 @@ export const RhfSubmitButton: React.FC = ({ type="submit" loading={formState.isSubmitting || loading} disabled={!formState.isValid || formState.isSubmitting || disabled} - className={cn('w-full', isDangerousSubmission && 'bg-red')} + className={cn('w-full', isDangerousSubmission && 'bg-red border-red')} {...otherButtonProps} > {formState.isValid ? enabledLabel : disabledLabel}