We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 494ead6 commit fd7ef01Copy full SHA for fd7ef01
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