You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -228,52 +228,54 @@ Labels should only be visually hidden when the context is clear from the input i
228
228
229
229
The following example demonstrates declarative form validation in [controlled mode](https://reactjs.org/docs/forms.html#controlled-components).
230
230
231
-
Try changing the input value to to `monalisa` to show the `success` state.
231
+
When the form is submitted with an invalid value, the invalid input receives focus to help the user correct the error. This is especially important for users navigating the form using a screen reader.
232
+
233
+
More information on form validation best practices can be found in the [Primer UI Patterns documentation](https://primer.style/ui-patterns/forms/overview#validation).
234
+
235
+
Try changing the input value to `monalisa` and submitting the form to show the `success` state.
0 commit comments