-
Notifications
You must be signed in to change notification settings - Fork 12
Amélioration de l'accessibilité du header #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
The aria-hidden="true" attribute was hidding the whole main navigation menu for screen readers, making it inaccessible for blind and visually impaired users. In mobile view, the menu was accessible thanks to .nav-main-mobile, which is hidden with display:none in desktop view (making it also hidden for screen readers).
The <nav> element is meant to be used for navigation links, such as menus, breadcrumbs, tables of contents…
Test Results 1 files 1 suites 0s ⏱️ For more details on these errors, see this check. Results for commit 55d0a31. ♻️ This comment has been updated with latest results. |
|
🔎 Download the Backstop report for this pull request (link valid for 90 days): |
|
|
||
| <form action="#" class="d-xl-none"> | ||
| <a id="search-mobile-toggle" class="search-mobile-toggle searchform-controller" href="#"> | ||
| <button id="search-mobile-toggle" class="search-mobile-toggle searchform-controller"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En l'état, le type button va soumettre le formulaire (au lieu d'afficher la barre de recherche).
|
|
||
| <div class="dropdown dropright search d-none d-xl-block"> | ||
| <a class="dropdown-toggle" href="#" data-toggle="dropdown"> | ||
| <button class="dropdown-toggle" href="#" data-toggle="dropdown"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que le href est nécessaire ?
aria-hidden="true"sur l'élément.nav-header, qui masquait l’ensemble du menu de navigation principale pour les lecteurs d'écran utilisés par les personnes aveugles ou malvoyantes.<nav>autour du menu principal.<div>, pas dans un<nav>.<button>plutôt que<a>pour le bouton qui sert à afficher le champ de recherche, et ajout d'un nom accessible masqué.https://epfl-webvolution.atlassian.net/browse/WEBEVOL-225