Skip to content

Conversation

@heloiselui
Copy link
Contributor

@heloiselui heloiselui commented Dec 5, 2025

Closes #20932

Add story controls and align visited styling in the Link component so WC + React stories behave, and hovering a visited link no longer reverts to the default color.

Changelog

New

  • Added inline control wiring for both React and WC Link stories so the Inline example is interactive.

Changed

  • Link now applies the visited colors via the --link--visited.
  • In WC Link stories (Default, Inline, PairedWithIcon) now pass visited down, fixing the icon story.

Removed

  • None.

Testing / Reviewing

  • Go to React/ WC Deploy Preview > Link > and check all the stories controls (disabled, inline, visited, etc.).

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • [ ] Wrote passing tests that cover this change
  • [ ] Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@heloiselui heloiselui requested a review from a team as a code owner December 5, 2025 17:06
@heloiselui heloiselui added package: react carbon-components-react package: @carbon/web-components @carbon/web-components package: @carbon/react @carbon/react and removed package: react carbon-components-react labels Dec 5, 2025
@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 8d27272
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69370856882d990009f5903e
😎 Deploy Preview https://deploy-preview-21136--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.60%. Comparing base (6e1243f) to head (8d27272).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21136   +/-   ##
=======================================
  Coverage   92.60%   92.60%           
=======================================
  Files         515      515           
  Lines       38225    38198   -27     
  Branches     5871     5871           
=======================================
- Hits        35399    35375   -24     
+ Misses       2676     2673    -3     
  Partials      150      150           
Flag Coverage Δ
main-packages 85.61% <ø> (ø)
web-components 96.89% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 8d27272
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/69370856882d990009f5903c
😎 Deploy Preview https://deploy-preview-21136--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 8d27272
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/693708562fab530008fd6db7
😎 Deploy Preview https://deploy-preview-21136--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

[Link]: add controls args to every story

1 participant