UI: Use Link component in details story example#76997
Conversation
Made-with: Cursor
|
Size Change: 0 B Total Size: 7.73 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 7199f41. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23891505945
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Merging to dedupe these changes from #76783. |
Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org>
What
Updates the shared
DETAILS_EXAMPLEused inWithDetailsstories to use theLinkcomponent instead of a plain<a>element.Why
The details story is meant to demonstrate rich content within the
detailsprop. Using the design system's ownLinkcomponent rather than a raw anchor tag better represents how consumers should compose these components together in practice.How
Linkcomponent intopackages/ui/src/form/stories/shared.tsx.<a>element with<Link>inDETAILS_EXAMPLE.To test
npm run storybook.Linkrather than the plaina.