Skip to content

Conversation

@alinekeller
Copy link
Collaborator

  • Suppression de l'attribut 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.
  • Ajout d'une balise <nav> autour du menu principal.
  • En revanche le sélecteur de langue doit être dans un <div>, pas dans un <nav>.
  • Utilisation d'une balise <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

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…
@github-actions
Copy link

github-actions bot commented Dec 16, 2025

Test Results

  1 files    1 suites   0s ⏱️
301 tests 263 ✅ 0 💤  0 ❌ 38 🔥
301 runs  225 ✅ 0 💤 38 ❌ 38 🔥

For more details on these errors, see this check.

Results for commit 55d0a31.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 16, 2025

🔎 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">
Copy link
Member

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">
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants