Open php-coder opened 3 years ago
All <div class="alert">
should also have role="alert"
attribute.
We also can try ChromeVox (https://support.google.com/chromebook/answer/7031755) or VoiceOver (https://webaim.org/articles/voiceover/).
Add aria-invalid="true"
(https://getbootstrap.com/docs/3.3/css/#forms-control-validation)
Use <header>
tag (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header).
Use <main>
tag (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main).
Takeaways from https://youtu.be/gHb2bAwuwHM
aria-describedBy=<id ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° Ρ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅ΠΌ ΠΎΠ± ΠΎΡΠΈΠ±ΠΊΠ΅>
aria-live="descriptive"
ΡΡΠΎΠ±Ρ ΠΎΡΠΈΠ±ΠΊΠ° Π±ΡΠ»Π° ΠΏΡΠΎΡΠΈΡΠ°Π½Π° ΠΏΡΠΈ ΠΏΠΎΡΠ²Π»Π΅Π½ΠΈΠΈ Π½Π° ΡΠΊΡΠ°Π½Π΅autocomplete="current-password"
Π² ΡΠΎΡΠΌΡ Π»ΠΎΠ³ΠΈΠ½Π°autocomplete="new-password"
Π² ΡΠΎΡΠΌΡ Π°ΠΊΡΠΈΠ²Π°ΡΠΈΠΈΠ‘ΠΌ. ΡΠ°ΠΊΠΆΠ΅: https://evilmartians.com/chronicles/html-best-practices-for-login-and-signup-forms
Read:
area-label
: https://stackoverflow.com/questions/22039910/what-is-aria-label-and-how-should-i-use-itaria-describedby
: https://stackoverflow.com/questions/4582694/what-is-the-meaning-of-the-aria-describedby-property (see the example with Logout especially)