Skip to content

Commit

Permalink
Merge pull request #817 from securityscorecard/UXD-1138-update-links
Browse files Browse the repository at this point in the history
fix(Link): update styling
  • Loading branch information
julesbarr authored Sep 20, 2023
2 parents ae79151 + 6f0d53b commit 88b8a1b
Show file tree
Hide file tree
Showing 70 changed files with 5 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/_internal/BaseLink/BaseLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ export const LinkBaseStyles = css<LinkStylesProps>`
margin: 0;
border: none;
font-family: inherit;
font-weight: ${getFontWeight('semibold')};
font-weight: ${getFontWeight('regular')};
text-decoration: underline;
background-color: transparent;
white-space: nowrap;
cursor: pointer;
color: ${(p) => getToken(`color-action-link-${p.$color}`, p)};
`;
export const LinkHoverStyles = css<LinkStylesProps>`
color: ${(p) => getToken(`color-action-link-${p.$color}-hover`, p)};
text-decoration: underline;
`;
export const LinkFocusStyles = css<LinkStylesProps>`
outline: 0;
color: ${(p) => getToken(`color-action-link-${p.$color}-hover`, p)};
text-decoration: underline;
background-color: ${(p) =>
getToken(`color-action-link-background${p.$color}-focus`, p)};
getToken(`color-action-link-background-${p.$color}-focus`, p)};
border-radius: ${getRadii('default')};
text-decoration: none;
`;
export const LinkActiveStyles = css<LinkStylesProps>`
color: ${(p) => getToken(`color-action-link-${p.$color}-active`, p)};
Expand Down
2 changes: 1 addition & 1 deletion src/theme/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const createTokens = (
'color-action-link-primary-active': colors.primary[600],
'color-action-link-background-primary-focus': colors.primary[50],
'color-action-link-secondary': colors.neutral[1000],
'color-action-link-secondary-hover': colors.neutral[800],
'color-action-link-secondary-hover': colors.neutral[700],
'color-action-link-secondary-active': colors.neutral[1000],
'color-action-link-background-secondary-focus': colors.neutral[200],

Expand Down

0 comments on commit 88b8a1b

Please sign in to comment.