Skip to content

fix(ui5-switch): prevent duplicate accessibility announcements#13098

Open
hinzzx wants to merge 2 commits intomainfrom
switch-announcement-fix
Open

fix(ui5-switch): prevent duplicate accessibility announcements#13098
hinzzx wants to merge 2 commits intomainfrom
switch-announcement-fix

Conversation

@hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Feb 16, 2026

Overview

During manual testing in the Accessbility hub switching the label on and off led to a duplicate announcement (e.g., "ON -> OFF, OFF"). This happened because the first "Off" is the label, and the second is the state - both announced as just "Off".

What We Did

  • Removed aria-label attribute, instead of rendering empty string, when no value is provided.

What This Fixes

  • ✅ Violation of WCAG Standard
  • ✅ No functional changes

Fixes: #13144

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Feb 16, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 16, 2026 14:26 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 25, 2026 12:16 Inactive
@unazko unazko self-requested a review February 27, 2026 15:07
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.

Switch control renders empty aria-label

2 participants