Skip to content

Commit

Permalink
fix(plasma-new-hope): fixed cursor and hover/active color
Browse files Browse the repository at this point in the history
  • Loading branch information
denivladislav committed Nov 1, 2024
1 parent 09323ee commit a68636a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const Link = component(mergedLinkConfig);

export const StyledLink = styled(Link)<{ isHref: boolean }>`
opacity: ${({ isHref }) => (isHref ? 1 : `var(${tokens.breadcrumbsOpacity})`)};
cursor: ${({ isHref }) => (isHref ? 'pointer' : 'auto')};
color: ${({ isHref }) => (isHref ? `var(${tokens.breadcrumbsColor})` : `var(${tokens.breadcrumbsColorText})`)};
cursor: pointer;
--plasma-link-disabled-opacity: var(${tokens.breadcrumbsOpacity});
${addFocus({
Expand All @@ -24,6 +24,14 @@ export const StyledLink = styled(Link)<{ isHref: boolean }>`
outlineRadius: '0rem',
outlineColor: `var(${tokens.breadcrumbsFocusOutlineColor})`,
})}
&:hover {
color: currentColor;
}
&:active {
color: currentColor;
}
`;

export const base = css`
Expand Down

0 comments on commit a68636a

Please sign in to comment.