ui-kit
ui-kit copied to clipboard
Add `<ScrollToFieldError>` component
Is your feature request related to a problem? Please describe.
When implementing forms, and there are potential validation errors, you might want the user to see the validation errors upon submitting the form.
If the form page is long, it can happen that the field with the validation error is "out of view".
Describe the solution you'd like
Provide a component that ensures the first form field with a validation error is visible on the page.
NOTE: we have already implemented this component and are testing it internally. Once we're happy with it, we can open source it in ui-kit.
The implementation and usage to be checked internally.