aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2023-01-13 17:29:12 +0100
committersonartech <sonartech@sonarsource.com>2023-01-16 20:03:42 +0000
commit894788e9c4fa951937cc71d1a75f771740256a53 (patch)
tree4fcf3f67f9101a76199c2619833bd8f5b6fe9584 /server/sonar-web/src/main
parent17aef22f2902619b8f07feaa8475ded7b59be912 (diff)
downloadsonarqube-894788e9c4fa951937cc71d1a75f771740256a53.tar.gz
sonarqube-894788e9c4fa951937cc71d1a75f771740256a53.zip
SONAR-18155 Fix homepage logo alt text
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap12
2 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx
index 65fbf80e801..5f3f3ae415b 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx
@@ -33,7 +33,7 @@ export function GlobalNavBranding({ appState: { settings } }: GlobalNavBrandingP
const customLogoUrl = settings[GlobalSettingKeys.LogoUrl];
const customLogoWidth = settings[GlobalSettingKeys.LogoWidth];
- const title = translate('layout.sonar.slogan');
+ const title = translate('layout.nav.home_logo_alt');
const url = customLogoUrl || `${getBaseUrl()}/images/logo.svg?v=6.6`;
const width = customLogoUrl ? customLogoWidth || 100 : 83;
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap
index 56d829bf682..f9f386d3994 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap
@@ -6,10 +6,10 @@ exports[`should render correctly: default 1`] = `
to="/"
>
<img
- alt="layout.sonar.slogan"
+ alt="layout.nav.home_logo_alt"
height={30}
src="/images/logo.svg?v=6.6"
- title="layout.sonar.slogan"
+ title="layout.nav.home_logo_alt"
width={83}
/>
</ForwardRef(Link)>
@@ -21,10 +21,10 @@ exports[`should render correctly: with logo 1`] = `
to="/"
>
<img
- alt="layout.sonar.slogan"
+ alt="layout.nav.home_logo_alt"
height={30}
src="http://sonarsource.com/custom-logo.svg"
- title="layout.sonar.slogan"
+ title="layout.nav.home_logo_alt"
width={100}
/>
</ForwardRef(Link)>
@@ -36,10 +36,10 @@ exports[`should render correctly: with logo and width 1`] = `
to="/"
>
<img
- alt="layout.sonar.slogan"
+ alt="layout.nav.home_logo_alt"
height={30}
src="http://sonarsource.com/custom-logo.svg"
- title="layout.sonar.slogan"
+ title="layout.nav.home_logo_alt"
width="200"
/>
</ForwardRef(Link)>