From abb4ac07656f900846fc2c62cdc893fe11126ab5 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 9 Aug 2022 13:41:36 +0200 Subject: [PATCH] SONAR-16782 [893330] Instructions rely on ability to see --- .../main/js/components/facet/MultipleSelectionHint.tsx | 8 +++++--- .../src/main/resources/org/sonar/l10n/core.properties | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) 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 -- 2.39.5