]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18155 Fix homepage logo alt text
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Fri, 13 Jan 2023 16:29:12 +0000 (17:29 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 16 Jan 2023 20:03:42 +0000 (20:03 +0000)
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavBranding.tsx
server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNavBranding-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 65fbf80e8017579520a80a95add4328bbcc13036..5f3f3ae415ba82a18009361d2de34addb5e54b44 100644 (file)
@@ -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;
 
index 56d829bf6828f4275d9aa456046ebf9823046430..f9f386d3994938890ffe3ce8a16ed5d9dac0ebd8 100644 (file)
@@ -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)>
index c5065d204a8b7e80edad3f5115edc1a9e9f6042b..74aa32dccf885ca82cec41fd4ee32690dbe3ccf1 100644 (file)
@@ -532,7 +532,7 @@ layout.settings.APP=Application Settings
 layout.settings.VW=Portfolio Settings
 layout.settings.SVW=Portfolio Settings
 layout.security_reports=Security Reports
-layout.sonar.slogan=Continuous Code Quality
+layout.nav.home_logo_alt=Logo, link to homepage
 layout.must_be_configured=This will be available once your project is configured and analyzed.
 layout.all_project_must_be_accessible=You need access to all projects within this {0} to access it.