Skip to content

feat: implement Link component#666

Open
patricklx wants to merge 1 commit into
mainfrom
feat/link
Open

feat: implement Link component#666
patricklx wants to merge 1 commit into
mainfrom
feat/link

Conversation

@patricklx

Copy link
Copy Markdown
Collaborator

Closes #463

Summary

  • Adds the Link component matching Carbon React's API: href, disabled, inline, visited, size (sm/md/lg), target (auto rel="noopener" for _blank), renderIcon, as (element tag override), and onClick.
  • Disabled links render without an href, with role="link" / aria-disabled="true", and swallow clicks — matching the accessible-disabled-link pattern used in React.
  • Exported from carbon-components-ember/src/components/index.ts.
  • Adds tests in test-app/tests/components/link-test.gts.
  • Adds a docs page at docs-app/public/docs/2-components/link.md with live examples.
  • Fixes a pre-existing JSON syntax error in .parity-check-data.json (missing quote on the Search entry) that was blocking the parity-check tooling.

Test plan

  • pnpm build succeeds
  • pnpm glint passes with no errors
  • CI test suite (local Playwright runner crashed locally with an unrelated EPIPE/sass-embedded error before running any tests — known local harness flakiness)

Adds the Link component matching Carbon React's API (href, disabled,
inline, visited, size, target, renderIcon, as, onClick). Disabled links
render without an href, with role="link" and aria-disabled, and swallow
clicks, matching the accessible-disabled-link pattern used in React.

Also fixes a pre-existing JSON syntax error in .parity-check-data.json
(missing quote on the Search entry) that was blocking the parity
tooling.

Closes #463

Signed-off-by: Patrick Pircher <patrick.pircher@ibm.com>
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs Preview

🔗 Preview URL: https://ibm.github.io/carbon-components-ember/pr-previews/pr-666/

Built from commit 968ccdd

github-actions Bot pushed a commit that referenced this pull request Jul 23, 2026
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.

[Parity Check] Investigate Link component

1 participant