Skip to content

Commit

Permalink
FIX tertiary colors of links
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 29, 2019
1 parent 12ab0fe commit 4521508
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/components/src/typography/link/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,32 +98,32 @@ const A = styled.a<LinkStylesProps>(
},
}),
({ theme, secondary, tertiary }) => {
let color;
let colors;
if (secondary) {
color = theme.color.secondary;
colors = [theme.color.mediumdark, theme.color.dark, theme.color.darker];
}
if (tertiary) {
color = theme.color.tertiary;
colors = [theme.color.dark, theme.color.darkest, theme.color.mediumdark];
}

return color
return colors
? {
color: theme.color.mediumdark,
color: colors[0],
'svg path': {
fill: theme.color.mediumdark,
fill: colors[0],
},

'&:hover': {
color: theme.color.dark,
color: colors[1],
'svg path': {
fill: theme.color.dark,
fill: colors[1],
},
},

'&:active': {
color: theme.color.darker,
color: colors[2],
'svg path': {
fill: theme.color.darker,
fill: colors[2],
},
},
}
Expand Down

0 comments on commit 4521508

Please sign in to comment.