This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-a99b4db7-4d71-44b9-bc0c-80c52f672898 XWIKI-22998 Open

Notification topbar toggle should use the `aria-expanded` attribute from the start

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1cd0f0c2-ede4-439f-89c8-bc86adee1e23 Charpentier Lucas created this issue on 18/Mar/25 16:07
 
Summary: Notification topbar toggle should use the `aria-expanded` attribute from the start
Issue Type: cid:jira-generated-image-avatar-a99b4db7-4d71-44b9-bc0c-80c52f672898 Bug
Affects Versions: 17.1.0
Assignee: Unassigned
Attachments: image-2025-03-18-16-06-57-454.png
Components: Notifications
Created: 18/Mar/25 16:07
Labels: wcag
Priority: cid:jira-generated-image-static-trivial-35f7e75d-5532-410a-bd02-7f286c77fff6 Trivial
Reporter: Charpentier Lucas
Description:

```
On Notification button (currently named “toggle navigation”), aria-expanded=”false” is missing.
When we activate the button, then “aria-expanded=”true” appears and if we press again, true switches to false (this part is ok). aria-expanded=”false” should be present in the code before pressing the element the first time.
```

_thumb_43412.png

See template at https://github.com/xwiki/xwiki-platform/blob/da56c0defbd5d810035ce9164dd38ad08984a709/xwiki-platform-core/xwiki-platform-alerts/xwiki-platform-alerts-ui/src/main/resources/XWiki/Alerts/Code/AlertsMenuUIX.xml#L140-L146