We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57b49d2 commit 6315fcbCopy full SHA for 6315fcb
packages/ui-form-field/src/FormFieldGroup/index.tsx
@@ -77,7 +77,13 @@ class FormFieldGroup extends Component<FormFieldGroupProps> {
77
}
78
79
get makeStylesVariables(): FormFieldGroupStyleProps {
80
- return { invalid: this.invalid }
+ // new form errors dont need borders
81
+ const oldInvalid =
82
+ !!this.props.messages &&
83
+ this.props.messages.findIndex((message) => {
84
+ return message.type === 'error'
85
+ }) >= 0
86
+ return { invalid: oldInvalid }
87
88
89
get invalid() {
0 commit comments