Skip to content

Commit

Permalink
feat(themes): add link-inverse-{active,hover} tokens (#10599)
Browse files Browse the repository at this point in the history
* feat(themes): add link-inverse-{active,hover} tokens

* test(styles): update snapshots

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
joshblack and kodiakhq[bot] authored Feb 2, 2022
1 parent 4060572 commit 996eee0
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/styles/scss/__tests__/theme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ describe('@carbon/styles/scss/theme', () => {
"link-primary",
"link-primary-hover",
"link-secondary",
"link-inverse",
"link-visited",
"link-inverse",
"link-inverse-active",
"link-inverse-hover",
"icon-primary",
"icon-secondary",
"icon-inverse",
Expand Down
3 changes: 3 additions & 0 deletions packages/themes/src/next/g10.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
// Blue
blue20,
blue30,
blue40,
blue60,
blue70,
Expand Down Expand Up @@ -153,6 +154,8 @@ export const linkPrimaryHover = blue70;
export const linkSecondary = blue70;
export const linkInverse = blue40;
export const linkVisited = purple60;
export const linkInverseActive = gray10;
export const linkInverseHover = blue30;

// Icon
export const iconPrimary = gray100;
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/next/g100.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export const linkPrimaryHover = blue30;
export const linkSecondary = blue30;
export const linkInverse = blue60;
export const linkVisited = purple40;
export const linkInverseActive = gray100;
export const linkInverseHover = blue70;

// Icon
export const iconPrimary = gray10;
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/next/g90.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export const linkPrimaryHover = blue30;
export const linkSecondary = blue30;
export const linkInverse = blue60;
export const linkVisited = purple40;
export const linkInverseActive = gray100;
export const linkInverseHover = blue70;

// Icon
export const iconPrimary = gray10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ Array [
"link-primary",
"link-primary-hover",
"link-secondary",
"link-inverse",
"link-visited",
"link-inverse",
"link-inverse-active",
"link-inverse-hover",
]
`;

Expand Down Expand Up @@ -207,8 +209,10 @@ Array [
"link-primary",
"link-primary-hover",
"link-secondary",
"link-inverse",
"link-visited",
"link-inverse",
"link-inverse-active",
"link-inverse-hover",
"icon-primary",
"icon-secondary",
"icon-inverse",
Expand Down
4 changes: 3 additions & 1 deletion packages/themes/src/next/tokens/v11TokenGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,13 @@ export const link = TokenGroup.create({
name: 'link-primary-hover',
},
'link-secondary',
'link-inverse',
{
state: 'visited',
name: 'link-visited',
},
'link-inverse',
'link-inverse-active',
'link-inverse-hover',
],
});

Expand Down
3 changes: 3 additions & 0 deletions packages/themes/src/next/white.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
// Blue
blue20,
blue30,
blue40,
blue60,
blue70,
Expand Down Expand Up @@ -153,6 +154,8 @@ export const linkPrimaryHover = blue70;
export const linkSecondary = blue70;
export const linkInverse = blue40;
export const linkVisited = purple60;
export const linkInverseActive = gray10;
export const linkInverseHover = blue30;

// Icon
export const iconPrimary = gray100;
Expand Down

0 comments on commit 996eee0

Please sign in to comment.