Skip to content

Conversation

@Stef-Rousset
Copy link

@Stef-Rousset Stef-Rousset commented Jun 12, 2025

🎩 What? Why?

This PR modifies the dropdonw-menu to improve accessibility, by:

  • adding a aria-modal="true" on dropdown-menu-account-mobile div
  • adding sr-only spans that gives informations on unread notifications and conversations
  • modifying the role="menu" added by a11y, which is inappropriate on div id="dropdown-menu-account" and div id="dropdown-menu-account-mobile", for role="dialog"

This PR is issued from the audit of Angers city (page 24, 25 , 26 and 28), and refers to criterias 2.5.3, 4.1.2, 1.3.3 and 1.4.1 from WCAG.

📌 Related Issues

Testing

As a logged in user, open your dev tools and inspect the html

  • check that the div id="dropdown-menu-account" and div id="dropdown-menu-account-mobile" have a role="dialog"
  • in mobile view, click on the avatar to open the menu, and check that the div id="dropdown-menu-account-mobile" has an aria-modal="true" (cf screenshot one)
  • close the modal and check that div id="dropdown-menu-account-mobile" has no aria-modal attribute
  • as a user with unread conversations, check that the button id="trigger-dropdown-account" has a span child sr-only "Unread conversations" (cf screenshot two)
  • as a user with unread notifications, check that the button id="trigger-dropdown-account" has a span child sr-only "Unread notifications"
  • as a user with unread conversations or unread notifications, check that the dropdown menu has sr-only spans "Unread conversations" or "Unread notifications" (cf screenshot three)

📷 Screenshots (optional)

SCREENSHOT ONE
Capture d’écran 2025-06-13 à 14 04 21

SCREENSHOT TWO
Capture d’écran 2025-06-13 à 14 12 53

SCREENSHOT THREE
Capture d’écran 2025-06-19 à 11 54 48

@Stef-Rousset Stef-Rousset force-pushed the fix/main_bar_avatar branch from a20d79d to 0d0983f Compare June 19, 2025 09:37
@Stef-Rousset Stef-Rousset force-pushed the fix/main_bar_avatar branch from 63f1ae9 to ac138b6 Compare July 9, 2025 10:14
@stale
Copy link

stale bot commented Oct 16, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. @carolromero & @xabier feel free to chime in.

@stale stale bot added the wontfix under the radar label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants