From: Wouter Admiraal Date: Tue, 9 Aug 2022 11:41:36 +0000 (+0200) Subject: SONAR-16782 [893330] Instructions rely on ability to see X-Git-Tag: 9.6.0.59041~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=abb4ac07656f900846fc2c62cdc893fe11126ab5;p=sonarqube.git SONAR-16782 [893330] Instructions rely on ability to see --- diff --git a/server/sonar-web/src/main/js/components/facet/MultipleSelectionHint.tsx b/server/sonar-web/src/main/js/components/facet/MultipleSelectionHint.tsx index 3d72062afbd..10aa4f570a6 100644 --- a/server/sonar-web/src/main/js/components/facet/MultipleSelectionHint.tsx +++ b/server/sonar-web/src/main/js/components/facet/MultipleSelectionHint.tsx @@ -21,14 +21,16 @@ import * as React from 'react'; import { translate } from '../../helpers/l10n'; import './MultipleSelectionHint.css'; -interface Props { +export interface MultipleSelectionHintProps { options: number; values: number; } -export default function MultipleSelectionHint({ options, values }: Props) { +const MAX_OPTIONS = 2; + +export default function MultipleSelectionHint({ options, values }: MultipleSelectionHintProps) { // do not render if nothing is selected or there are less than 2 possible options - if (values === 0 || options < 2) { + if (values === 0 || options < MAX_OPTIONS) { return null; } diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index bb735e199a5..fbf1f85bb05 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1393,8 +1393,8 @@ help.section.tutorials=Tutorials shortcuts.section.global=Global shortcuts.section.global.search=quickly open search bar shortcuts.section.global.shortcuts=open this window -shortcuts.section.global.facets.multiselection=Ctrl + click to add to selection -shortcuts.section.global.facets.multiselection.mac=\u2318 + click to add to selection +shortcuts.section.global.facets.multiselection=Press Ctrl to add to selection +shortcuts.section.global.facets.multiselection.mac=Press \u2318 to add to selection shortcuts.section.issues=Issues Page shortcuts.section.issues.navigate_between_issues=navigate between issues