feat: move colorLink to seedToken #43183
Merged
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.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
colorLink
to seed token,colorLinkHover
andcolorLinkActive
will be calculated withcolorLink
.colorLink
添加至 seed token 中,colorLinkHover
和colorLinkActive
将会由colorLink
计算得出。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 387f9fe
This pull request adds support for hyperlink colors in the theme system. It introduces a new
colorLink
token and its related interfaces and functions. It also removes unused and redundant properties from the alias token and updates the token tests.🔍 Walkthrough
🤖 Generated by Copilot at 387f9fe
ColorLinkMapToken
interface to define hyperlink colors (link,link)ColorMapToken
interface withColorLinkMapToken
interface (link)colorLink
,colorLinkHover
, andcolorLinkActive
properties fromAliasToken
interface (link)colorLink
,colorLinkHover
, andcolorLinkActive
properties from alias token object (link)colorLink
property toSeedToken
interface with default value ofcolorPrimary
(link)colorLink
property toseedToken
value with empty string (link)colorLink
token based oncolorLink
orcolorPrimary
seed value (link)colorLinkHover
,colorLink
, andcolorLinkActive
properties to color map token object (link)colorLink
token intoken.test.tsx
(link)getHookToken
helper function to the top oftoken.test.tsx
(link,link)alias.ts
for formatting (link)