>
{icon}
{children}
- {showExternalIcon && <OpenNewTabIcon className="sw-ml-1" />}
+ {showExternalIcon && <ExternalIcon className="sw-ml-1" />}
</a>
);
}
);
}
+const ExternalIcon = styled(OpenNewTabIcon)`
+ color: ${themeColor('linkExternalIcon')};
+`;
+
export const BaseLink = React.forwardRef(BaseLinkWithRef);
const StyledBaseLink = styled(BaseLink)`
color: var(--active);
border-bottom: ${({ children, icon, theme }) =>
icon && !children ? themeBorder('default', 'transparent')({ theme }) : 'var(--borderActive)'};
+
+ ${ExternalIcon} {
+ color: ${themeColor('linkExternalIconActive')};
+ }
}
& > svg {
linkTooltipDefault: COLORS.indigo[200],
linkTooltipActive: COLORS.indigo[100],
linkBorder: COLORS.indigo[300],
+ linkExternalIcon: COLORS.indigo[300],
+ linkExternalIconActive: COLORS.indigo[400],
contentLinkBorder: COLORS.blueGrey[200],
// discreet select