feat(#2956): update Link component for V2 #3125
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the Link component to support V2 design system styling with size variants and an expanded color system, while maintaining full backward compatibility with V1.
Note: This is a Token+CSS update WITHOUT a version prop - the
sizeandcolorprops handle all variations with sensible defaults.Changes
New Props
size("xsmall" | "small" | "medium" | "large", default"medium"): Controls link typography and icon sizingcolor- Updated to include"dark"option:"interactive" | "dark" | "light"(default"interactive")V2 Styling Updates
Size Variants
Color Variants
State Styling
Icon Integration
Technical Implementation
No Version Prop Pattern
size="medium"matches V1 typography (18px/24px)color="interactive"maintains V1 blue link behaviorGap Spacing with Fallbacks
var(--goa-link-gap, 0.25rem)provides 4px defaultvar(--goa-link-gap-medium, 0.25rem)with fallback valuesDynamic Icon Sizing
Related