Skip to content

Commit

Permalink
Update docs/code-howtos/ui-recommendations.md
Browse files Browse the repository at this point in the history
Co-authored-by: Subhramit Basu Bhowmick <[email protected]>
  • Loading branch information
koppor and subhramit authored Oct 10, 2024
1 parent 59c0149 commit 7057349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/code-howtos/ui-recommendations.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ More information:
* Only validate input after leaving the field (or after the user stopped typing for some time)
* The user shouldn't be able to submit the form if there are errors
* However, disabling the submit button in case there are errors is also not optimal. Instead, clicking the submit button should highlight the errors.
* Empty required files shouldn't be marked as invalid until the user a) tries to submit the form or b) focused the field, deleted it contents and then left the field (see [Example](https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_required)()
* Empty required files shouldn't be marked as invalid until the user a) tried to submit the form or b) focused the field, deleted its contents and then left the field (see [Example](https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_required)
* Ideally, the error message should be shown below the text field and not as a tooltip (so that users quickly understand what's the problem). For example as [in Boostrap](https://mdbootstrap.com/docs/jquery/forms/validation/?#custom-styles).

<!-- markdownlint-disable-file MD022 -->

0 comments on commit 7057349

Please sign in to comment.