Skip to content

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

Open
hinzzx wants to merge 1 commit intomainfrom
switch-announcement-fix
Open

fix(ui5-switch): prevent duplicate accessibility announcements#13098
hinzzx wants to merge 1 commit 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

  • Added "Switch" prefix to the state announcement text (e.g., "Switch Off" instead of just "Off")
  • Added new i18n entries SWITCH_STATE_ON and SWITCH_STATE_OFF for proper localization

What This Fixes

  • ✅ State announcements now clearly distinguish from labels (e.g., "Off" label vs "Switch Off" state)
  • ✅ No functional changes

@ui5-webcomponents-bot
Copy link
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 16, 2026 14:26 Inactive
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.

2 participants