From e138e65891d898853efe4c603a24e7ba0232f9f3 Mon Sep 17 00:00:00 2001 From: 7PH Date: Thu, 23 Nov 2023 17:45:38 +0100 Subject: [PATCH] SONAR-20852 Fix StandoutLink external link icon color to match latest design system Co-authored-by: Stanislav <31501873+stanislavhh@users.noreply.github.com> --- server/sonar-web/design-system/src/components/Link.tsx | 10 +++++++++- server/sonar-web/design-system/src/theme/light.ts | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/design-system/src/components/Link.tsx b/server/sonar-web/design-system/src/components/Link.tsx index 07d743a85aa..47177ca0f54 100644 --- a/server/sonar-web/design-system/src/components/Link.tsx +++ b/server/sonar-web/design-system/src/components/Link.tsx @@ -93,7 +93,7 @@ function BaseLinkWithRef(props: LinkProps, ref: React.ForwardedRef {icon} {children} - {showExternalIcon && } + {showExternalIcon && } ); } @@ -106,6 +106,10 @@ function BaseLinkWithRef(props: LinkProps, ref: React.ForwardedRef icon && !children ? themeBorder('default', 'transparent')({ theme }) : 'var(--borderActive)'}; + + ${ExternalIcon} { + color: ${themeColor('linkExternalIconActive')}; + } } & > svg { diff --git a/server/sonar-web/design-system/src/theme/light.ts b/server/sonar-web/design-system/src/theme/light.ts index 31cbc743bb5..ed9ed6e68ad 100644 --- a/server/sonar-web/design-system/src/theme/light.ts +++ b/server/sonar-web/design-system/src/theme/light.ts @@ -335,6 +335,8 @@ export const lightTheme = { 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 -- 2.39.5