Skip to content

Conversation

ZallaxDev
Copy link
Contributor

The mainbar's expandable panels (slates), such as 'Tools' or 'Mail', were dynamically assigned role="region" but lacked an accessible name.

This change fixes the issue by dynamically adding an accessible label to each slate region when it is expanded, using the visible text from its trigger button.

Changes:

  • Modified the additional_engage function in mainbar.renderer.js.
  • When a slate is engaged, the script now finds the corresponding trigger button and extracts its visible text content (e.g., "Tools").
  • This text is then used to populate the aria-labelledby attribute on the slate's region element, providing it with an accessible name.

Ticket 43946

The mainbar's expandable panels (slates), such as 'Tools' or 'Mail', were dynamically assigned `role="region"` but lacked an accessible name.

This change fixes the issue by dynamically adding an accessible label to each slate region when it is expanded, using the visible text from its trigger button.

Changes:
- Modified the `additional_engage` function in `mainbar.renderer.js`.
- When a slate is engaged, the script now finds the corresponding trigger button and extracts its visible text content (e.g., "Tools").
- This text is then used to populate the `aria-labelledby` attribute on the slate's `region` element, providing it with an accessible name. Ticket 43946
@ZallaxDev ZallaxDev requested a review from klees October 16, 2025 15:27
@ZallaxDev ZallaxDev added bugfix javascript Pull requests that update Javascript code labels Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants