Skip to content

fix(components): use aria-describedby for button and link descriptions - #10677

Open
deleonio wants to merge 1 commit into
developfrom
fix/10615-aria-description-button-link
Open

fix(components): use aria-describedby for button and link descriptions#10677
deleonio wants to merge 1 commit into
developfrom
fix/10615-aria-description-button-link

Conversation

@deleonio

Copy link
Copy Markdown
Contributor

Summary

Fixes #10615

The ariaDescription on kol-button / kol-link was rendered as the bare aria-description attribute (ARIA 1.2). This attribute has poor/inconsistent screen reader support (NVDA, JAWS, VoiceOver often ignore it or announce it in the wrong order), so the accessible description was read before the label instead of after it.

Commit f5957ac8ae had replaced the previously robust aria-describedby + visually-hidden span pattern with the bare aria-description attribute. This PR reverts button and link to the robust pattern and thereby makes them consistent with all form controls (input-text, select, textarea, …), which already use aria-describedby.

Changes

  • button/component.tsx: aria-descriptionaria-describedby (IDREF) + visually-hidden <span>
  • link/component.tsx: same change
  • All forwarding components (button-link, link-button, split-button, popover-button, badge) benefit automatically.
  • Updated button snapshot test.

Detailed analysis is posted in #10615.

Checklist

  • Component snapshot tests pass (button: 10/10, link: 7/7)
  • No new ESLint violations (pre-existing type-resolution errors unchanged)
  • pnpm format applied

Replaces the bare aria-description attribute (ARIA 1.2, poor screen reader
support) with the robust aria-describedby + visually-hidden span pattern.
This restores the behavior from before f5957ac and makes button/link
consistent with all form controls, so the accessible description is reliably
announced after the accessible name.

fixes #10615
@deleonio
deleonio requested a review from laske185 August 13, 2026 08:08
@deleonio deleonio self-assigned this Aug 13, 2026
@deleonio deleonio added the release:fix PR behebt einen Bug und wird unter 'Bug Fixes' im Release-Changelog gelistet. label Aug 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 MCP preview deployed to Vercel: https://kolibri-c674iygjc-public-ui-kolibri-mcp.vercel.app

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview deployed to GitHub Pages: https://public-ui.github.io/kolibri/pr-10677/51b366e/
Commit: 51b366e

@github-actions

Copy link
Copy Markdown
Contributor

📸 Visual Test Reports

Theme Report
theme-bwst Open report
theme-default Open report
theme-desy Open report
theme-ecl Open report
theme-kern Open report
test-tag-name-transformer Open report

Run: https://github.com/public-ui/kolibri/actions/runs/31680690251

@laske185

Copy link
Copy Markdown
Contributor

@deleonio Schau dir mal die Unit Tests an.

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

Labels

release:fix PR behebt einen Bug und wird unter 'Bug Fixes' im Release-Changelog gelistet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aria-Probleme bei Action Buttons in einer Tabelle

2 participants