Skip to content

Conversation

@unazko
Copy link
Contributor

@unazko unazko commented Oct 13, 2025

What Changed

Moved button type text (like "Emphasized", "Negative", etc.) from aria-label to aria-description attribute for better semantic accessibility.

Why

Button type information should be supplementary description rather than part of the primary label. This provides cleaner aria-label values while maintaining accessibility information in the appropriate attribute.

What's Fixed

  • Modified ariaLabelText getter to exclude button type text
  • Modified ariaDescriptionText getter to include button type text alongside accessibleDescription
  • Updated failing Cypress tests to verify the new behavior

Fixes #12413

…ption

When a button has design property (like Emphasized, Negative), the type text
should be in aria-description instead of aria-label for better semantic
separation. Updated tests to verify the new behavior.

Fixes #12413
@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Oct 13, 2025

🧹 Preview deployment cleaned up: https://pr-12474--ui5-webcomponents.netlify.app

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 13, 2025 09:33 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 13, 2025 10:10 Inactive
@unazko unazko requested a review from GDamyanov October 14, 2025 07:12
Copy link
Contributor

@GDamyanov GDamyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 14, 2025 11:04 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 20, 2025 09:44 Inactive
@unazko unazko merged commit b444706 into main Oct 20, 2025
21 of 22 checks passed
@unazko unazko deleted the ButtonType branch October 20, 2025 11:16
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 20, 2025 11:16 Inactive
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.16.0-rc.2 🎉

The release is available on v2.16.0-rc.2

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SF][Button]: [A11y]The Button design type "Emphasized" should be ready out as an additional information, not inside the aria-label

4 participants