From 1303c4562196a5f34348c3884d3a9580c58b49a3 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 23 Aug 2018 16:57:16 +0200 Subject: [PATCH] SONAR-10678 Make global navigation links on the right side discernible --- .../app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx | 3 ++- .../src/main/js/app/components/nav/global/GlobalNavPlus.tsx | 3 ++- .../src/main/js/app/components/nav/global/GlobalNavUser.tsx | 2 +- .../global/__tests__/__snapshots__/GlobalNavUser-test.tsx.snap | 3 +++ sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx index f9671bc289e..ff39f16ad71 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopupHelper.tsx @@ -23,6 +23,7 @@ import { CurrentUser } from '../../types'; import Toggler from '../../../components/controls/Toggler'; import HelpIcon from '../../../components/icons-components/HelpIcon'; import { lazyLoad } from '../../../components/lazyLoad'; +import { translate } from '../../../helpers/l10n'; const EmbedDocsPopup = lazyLoad(() => import('./EmbedDocsPopup')); @@ -90,7 +91,7 @@ export default class EmbedDocsPopupHelper extends React.PureComponent }> - + diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavPlus.tsx b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavPlus.tsx index 629bdc20180..a191797ca53 100644 --- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavPlus.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavPlus.tsx @@ -88,7 +88,8 @@ export default class GlobalNavPlus extends React.PureComponent { aria-haspopup="true" className="navbar-plus" href="#" - onClick={onToggleClick}> + onClick={onToggleClick} + title={translate('my_account.create_new_project_or_organization')}> diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx index af85d305412..8d11216b9f7 100644 --- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx @@ -101,7 +101,7 @@ export default class GlobalNavUser extends React.PureComponent { } tagName="li"> - +