From 1432d3b5928938ab77a44791274d51e8e0cebb73 Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Thu, 25 Jul 2024 12:05:37 +0200 Subject: SONAR-22616 Fix Activity graph dropdown/select buttons --- .../components/activity-graph/AddGraphMetric.tsx | 18 +++++++--------- .../js/components/activity-graph/GraphsHeader.tsx | 25 +++++++++++++--------- 2 files changed, 23 insertions(+), 20 deletions(-) (limited to 'server/sonar-web/src') diff --git a/server/sonar-web/src/main/js/components/activity-graph/AddGraphMetric.tsx b/server/sonar-web/src/main/js/components/activity-graph/AddGraphMetric.tsx index 709fd8f98ea..d8dda386b12 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/AddGraphMetric.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/AddGraphMetric.tsx @@ -17,8 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { Button } from '@sonarsource/echoes-react'; -import { ChevronDownIcon, Dropdown, TextMuted } from 'design-system'; + +import { Button, IconChevronDown } from '@sonarsource/echoes-react'; +import { Dropdown, TextMuted } from 'design-system'; import { sortBy } from 'lodash'; import * as React from 'react'; import { MetricKey, MetricType } from '~sonar-aligned/types/metrics'; @@ -152,14 +153,11 @@ export default class AddGraphMetric extends React.PureComponent { /> } > - ); diff --git a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx index 84838048d91..8390f89174f 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx @@ -18,8 +18,14 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { Button, DropdownMenu, DropdownMenuAlign } from '@sonarsource/echoes-react'; -import { ChevronDownIcon, TextMuted } from 'design-system'; +import { + Button, + ButtonGroup, + DropdownMenu, + DropdownMenuAlign, + IconChevronDown, +} from '@sonarsource/echoes-react'; +import { TextMuted } from 'design-system'; import * as React from 'react'; import { translate } from '../../helpers/l10n'; import { GraphType } from '../../types/project-activity'; @@ -76,17 +82,16 @@ export default function GraphsHeader(props: Props) { return (
-
+ @@ -101,7 +106,7 @@ export default function GraphsHeader(props: Props) { selectedMetrics={selectedMetrics} /> )} -
+
); } -- cgit v1.2.3