From: Stas Vilchik Date: Mon, 4 Sep 2017 14:36:24 +0000 (+0200) Subject: SONAR-9736 change color of help icon X-Git-Tag: 6.6-RC1~380^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38ef0887b448e1c96b84b1631c293d553da39cb1;p=sonarqube.git SONAR-9736 change color of help icon --- diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx index cad8419bc56..93961a70548 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx @@ -146,7 +146,7 @@ export default class ComponentNavBranch extends React.PureComponent
- +
- + - + {currentBranch.name} diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBranch-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBranch-test.tsx.snap index 85f4f20a64d..96442ba36f1 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBranch-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBranch-test.tsx.snap @@ -54,7 +54,6 @@ exports[`renders no branch support popup 1`] = ` onClick={[Function]} > @@ -122,7 +121,6 @@ exports[`renders single branch popup 1`] = ` } } className="little-spacer-right" - color="#cdcdcd" /> - - - - - ); -} diff --git a/server/sonar-web/src/main/js/components/icons-components/HelpIcon.tsx b/server/sonar-web/src/main/js/components/icons-components/HelpIcon.tsx new file mode 100644 index 00000000000..5097fde124e --- /dev/null +++ b/server/sonar-web/src/main/js/components/icons-components/HelpIcon.tsx @@ -0,0 +1,39 @@ +/* + * SonarQube + * Copyright (C) 2009-2017 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +import * as React from 'react'; + +interface Props { + className?: string; + fill?: string; + size?: number; +} + +export default function HelpIcon({ className, fill = 'currentColor', size = 16 }: Props) { + return ( + + + + + + ); +}