Skip to content

docs(ui5-link): clarify navigation vs. action usage and accessible role - #14088

Open
unazko wants to merge 2 commits into
mainfrom
link_press_jaws_vpc
Open

unazko wants to merge 2 commits into
mainfrom
link_press_jaws_vpc

Conversation

@unazko

@unazko unazko commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Issue
A link used to trigger an in-page action, left on the default "Link" role with no href, is not activated by some screen readers (e.g. JAWS in browse mode), because a link with no destination has nothing to navigate to. The docs did not surface the action use case, so developers could miss that accessibleRole="Button" is required for action-only links.

Solution

  • Add a "Navigation vs. Action" section to the component overview: navigation -> set href; action -> set accessibleRole="Button".
  • Expand the accessibleRole property note to explain why the button role matters (screen-reader activation), not just when to use it.

Testing
Documentation-only change (JSDoc); no automated test applies. No runtime or API behavior changed.

Fixes #14068

**Issue**
A link used to trigger an in-page action, left on the default "Link"
role with no href, is not activated by some screen readers (e.g. JAWS
in browse mode), because a link with no destination has nothing to
navigate to. The docs did not surface the action use case, so developers
could miss that accessibleRole="Button" is required for action-only links.

**Solution**
- Add a "Navigation vs. Action" section to the component overview:
  navigation -> set href; action -> set accessibleRole="Button".
- Expand the accessibleRole property note to explain why the button role
  matters (screen-reader activation), not just when to use it.

**Testing**
Documentation-only change (JSDoc); no automated test applies. No runtime
or API behavior changed.

Fixes #14068
@unazko
unazko deployed to netlify-preview September 24, 2026 09:09 — with GitHub Actions Active
@unazko
unazko requested a review from LilyanaOviPe September 24, 2026 09:10
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

Comment thread packages/main/src/Link.ts Outdated
Comment thread packages/main/src/Link.ts Outdated
Comment thread packages/main/src/Link.ts Outdated
Comment thread packages/main/src/Link.ts Outdated
Comment thread packages/main/src/Link.ts Outdated
@unazko
unazko deployed to netlify-preview September 24, 2026 14:28 — with GitHub Actions Active
@unazko
unazko requested a review from LilyanaOviPe September 24, 2026 14:29

This branch was successfully deployed

1 active deployment
netlify-preview 48bda325 Deployed Sep 24, 2026 by unazko via deploy-preview #3386
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.

[ui5-link][JAWS]: can't trigger onClick event by Enter/Space key when JAWS is on

2 participants