Skip to content

Conversation

ZallaxDev
Copy link
Contributor

@ZallaxDev ZallaxDev commented Oct 16, 2025

The close button in the MainBar subsections was only labeled as "Close" without indicating which specific subsection was being closed, causing accessibility issues for screen reader users.

Changes:

  • Modified mainbar.renderer.js to dynamically update both aria-label and visible text of the close button when a slate is engaged
  • Added toJS('close') in MainControls Renderer.php to expose the translation key to JavaScript
  • Close button now displays contextual information (e.g., "Close Personal Workspace" instead of just "Close")

This fix improves WCAG 2.1 compliance by providing clear context about which UI element will be affected by the close action.

Ticket 43949

The close button in the MainBar subsections was only labeled as "Close"
without indicating which specific subsection was being closed, causing
accessibility issues for screen reader users.

Changes:
- Modified mainbar.renderer.js to dynamically update both aria-label
  and visible text of the close button when a slate is engaged
- Added toJS('close') in MainControls Renderer.php to expose the
  translation key to JavaScript
- Close button now displays contextual information (e.g., "Close
  Personal Workspace" instead of just "Close")

This fix improves WCAG 2.1 compliance by providing clear context about
which UI element will be affected by the close action.

Ticket 43949.
@ZallaxDev ZallaxDev requested a review from klees October 16, 2025 15:05
@ZallaxDev ZallaxDev added bugfix kitchen sink php Pull requests that update Php code 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 kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants