Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Link): add inverse text visited color token and apply #1982

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .storybook/data/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@
"eds-theme-color-text-utility-disabled-secondary": "#CFC9C7",
"eds-theme-color-text-utility-inverse": "rgb(var(--eds-color-white) / 1)",
"eds-theme-color-text-utility-inverse-disabled": "rgb(var(--eds-color-white) / 0.5)",
"eds-theme-color-text-utility-inverse-interactive-visited": "#C580E7",
"eds-theme-color-text-utility-placeholder": "#6C6967",
"eds-theme-color-text-utility-success": "#007249",
"eds-theme-color-text-utility-error": "#BD0044",
Expand Down
6 changes: 5 additions & 1 deletion src/components/Link/Link-v2.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@
*/
.link.link--variant-inverse:hover,
.link.link--variant-inverse:active {
color: var(--eds-theme-color-text-utility-inverse);
color: var(--eds-theme-color-text-utility-inverse);
}

.link.link--variant-inverse:visited {
color: var(--eds-theme-color-text-utility-inverse-interactive-visited);
}

/**
Expand Down
5 changes: 5 additions & 0 deletions src/design-tokens/themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,11 @@
},
"disabled": {
"value": "rgb(var(--eds-color-white) / 0.5)"
},
"interactive": {
"visited": {
"value": "{eds.color.purple.350}"
}
}
},
"placeholder": {
Expand Down
1 change: 1 addition & 0 deletions src/tokens-dist/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@
--eds-theme-color-text-utility-error: var(--eds-color-other-ruby-700);
--eds-theme-color-text-utility-success: var(--eds-color-other-mint-700); /* @deprecated This should not be used in code or design. It will be removed in a future version of EDS. */
--eds-theme-color-text-utility-placeholder: var(--eds-color-neutral-550);
--eds-theme-color-text-utility-inverse-interactive-visited: var(--eds-color-purple-350);
--eds-theme-color-text-utility-disabled-secondary: var(--eds-color-neutral-200);
--eds-theme-color-text-utility-disabled-primary: var(--eds-color-neutral-350);
--eds-theme-color-text-utility-informational-active: var(--eds-color-blue-750);
Expand Down
5 changes: 4 additions & 1 deletion src/tokens-dist/json/variables-nested.json
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,10 @@
},
"inverse": {
"@": "rgb(var(--eds-color-white) / 1)",
"disabled": "rgb(var(--eds-color-white) / 0.5)"
"disabled": "rgb(var(--eds-color-white) / 0.5)",
"interactive": {
"visited": "#C580E7"
}
},
"placeholder": "#6C6967",
"success": "#007249",
Expand Down
1 change: 1 addition & 0 deletions src/tokens-dist/ts/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ export const EdsThemeColorTextUtilityInverse =
'rgb(var(--eds-color-white) / 1)';
export const EdsThemeColorTextUtilityInverseDisabled =
'rgb(var(--eds-color-white) / 0.5)';
export const EdsThemeColorTextUtilityInverseInteractiveVisited = '#C580E7';
export const EdsThemeColorTextUtilityPlaceholder = '#6C6967';
export const EdsThemeColorTextUtilitySuccess = '#007249'; // @deprecated This should not be used in code or design. It will be removed in a future version of EDS.
export const EdsThemeColorTextUtilityError = '#BD0044';
Expand Down
Loading