diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartData.ts b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartData.ts
index 907e9018ce..feee76a510 100644
--- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartData.ts
+++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartData.ts
@@ -1,8 +1,8 @@
import { IFeatureMetricsRaw } from 'interfaces/featureToggle';
import { ChartData } from 'chart.js';
import { ILocationSettings } from 'hooks/useLocationSettings';
-import theme from 'themes/theme';
import 'chartjs-adapter-date-fns';
+import { Theme } from '@mui/material/styles/createTheme';
interface IPoint {
x: string;
@@ -10,6 +10,7 @@ interface IPoint {
}
export const createChartData = (
+ theme: Theme,
metrics: IFeatureMetricsRaw[],
locationSettings: ILocationSettings
): ChartData<'line', IPoint[], string> => {
diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts
index 638b2a1ec3..29eb1e4334 100644
--- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts
+++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts
@@ -2,10 +2,11 @@ import { ILocationSettings } from 'hooks/useLocationSettings';
import 'chartjs-adapter-date-fns';
import { ChartOptions, defaults } from 'chart.js';
import { IFeatureMetricsRaw } from 'interfaces/featureToggle';
-import theme from 'themes/theme';
import { formatDateHM } from 'utils/formatDate';
+import { Theme } from '@mui/material/styles/createTheme';
export const createChartOptions = (
+ theme: Theme,
metrics: IFeatureMetricsRaw[],
hoursBack: number,
locationSettings: ILocationSettings
@@ -18,6 +19,7 @@ export const createChartOptions = (
mode: 'index',
intersect: false,
},
+ color: theme.palette.text.secondary,
plugins: {
tooltip: {
backgroundColor: theme.palette.background.paper,
@@ -56,6 +58,7 @@ export const createChartOptions = (
size: 16,
weight: '400',
},
+ color: theme.palette.text.primary,
},
},
scales: {
@@ -64,10 +67,15 @@ export const createChartOptions = (
title: {
display: true,
text: 'Number of requests',
+ color: theme.palette.text.secondary,
},
// min: 0,
suggestedMin: 0,
- ticks: { precision: 0 },
+ ticks: { precision: 0, color: theme.palette.text.secondary },
+ grid: {
+ color: theme.palette.divider,
+ borderColor: theme.palette.divider,
+ },
},
x: {
type: 'time',
@@ -76,6 +84,7 @@ export const createChartOptions = (
ticks: {
callback: (_, i, data) =>
formatDateHM(data[i].value, locationSettings.locale),
+ color: theme.palette.text.secondary,
},
},
},
diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx
index 52cfcfed8f..c3275af9cf 100644
--- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx
+++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx
@@ -11,7 +11,7 @@ interface IFeatureMetricsChipsProps {
const StyledTitle = styled('h2')(({ theme }) => ({
margin: 0,
- marginBottom: theme.spacing(1),
+ marginBottom: theme.spacing(1.5),
fontSize: theme.fontSizes.smallBody,
fontWeight: theme.fontWeight.thin,
color: theme.palette.text.secondary,
diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx
index 004075305b..917dd6d04b 100644
--- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx
+++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx
@@ -2,7 +2,6 @@ import { FeatureMetricsTable } from '../FeatureMetricsTable/FeatureMetricsTable'
import { IFeatureMetricsRaw } from 'interfaces/featureToggle';
import { FeatureMetricsStatsRaw } from '../FeatureMetricsStats/FeatureMetricsStatsRaw';
import { Box, Typography } from '@mui/material';
-import theme from 'themes/theme';
import { useId } from 'hooks/useId';
import React, { Suspense } from 'react';
@@ -35,12 +34,7 @@ export const FeatureMetricsContent = ({
return (
-
+
({
+ margin: 0,
+ marginBottom: theme.spacing(1),
+ fontSize: theme.fontSizes.smallBody,
+ fontWeight: theme.fontWeight.thin,
+ color: theme.palette.text.secondary,
+}));
+
interface IFeatureMetricsHoursProps {
hoursBack: number;
setHoursBack: (value: number) => void;
@@ -18,15 +27,17 @@ export const FeatureMetricsHours = ({
};
return (
-
+
+ Period
+
+
);
};
diff --git a/frontend/src/component/feedback/FeedbackNPS/FeedbackNPS.tsx b/frontend/src/component/feedback/FeedbackNPS/FeedbackNPS.tsx
index 9171d5a8ac..44eea60642 100644
--- a/frontend/src/component/feedback/FeedbackNPS/FeedbackNPS.tsx
+++ b/frontend/src/component/feedback/FeedbackNPS/FeedbackNPS.tsx
@@ -1,11 +1,18 @@
import { useContext, useMemo, useState } from 'react';
-import { Box, Button, IconButton, Tooltip, useTheme } from '@mui/material';
+import {
+ Box,
+ Button,
+ IconButton,
+ Tooltip,
+ useTheme,
+ styled,
+} from '@mui/material';
import CloseIcon from '@mui/icons-material/Close';
-import { ReactComponent as Logo } from 'assets/icons/logoPlain.svg';
+import { ReactComponent as UnleashLogo } from 'assets/icons/logoBg.svg';
+import { ReactComponent as UnleashLogoWhite } from 'assets/icons/logoWhiteBg.svg';
import AnimateOnMount from 'component/common/AnimateOnMount/AnimateOnMount';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import {
- contentSpacingY,
fadeInTopEnter,
fadeInTopLeave,
fadeInTopStart,
@@ -17,6 +24,13 @@ import {
} from 'component/feedback/FeedbackNPS/showNPSFeedback';
import { useAuthFeedback } from 'hooks/api/getters/useAuth/useAuthFeedback';
import { useAuthFeedbackApi } from 'hooks/api/actions/useAuthFeedbackApi/useAuthFeedbackApi';
+import { ThemeMode } from 'component/common/ThemeMode/ThemeMode';
+
+const StyledHeader = styled('h3')(({ theme }) => ({
+ margin: 0,
+ color: theme.palette.text.primary,
+ marginLeft: theme.spacing(1),
+}));
interface IFeedbackNPSProps {
openUrl: string;
@@ -77,12 +91,13 @@ export const FeedbackNPS = ({ openUrl }: IFeedbackNPSProps) => {
leave={animations.leave}
>
@@ -90,35 +105,37 @@ export const FeedbackNPS = ({ openUrl }: IFeedbackNPSProps) => {
sx={{
display: 'flex',
flexDirection: 'column',
+ rowGap: theme.spacing(1.5),
position: 'relative',
- ...contentSpacingY(theme),
}}
>
({
position: 'absolute',
- right: '-38px',
- top: '-47px',
- backgroundColor: theme.palette.background.paper,
- boxShadow: theme.boxShadows.elevated,
- '&:hover': {
- backgroundColor:
- theme.palette.background.paper,
- },
- }}
+ right: theme.spacing(-4),
+ top: theme.spacing(-4),
+ })}
onClick={() => setShowFeedback(false)}
size="large"
>
-
+ >
+ }
+ lightmode={}
+ />
+ Unleash feedback
+
+
{
}
/>
-
+
({
fontWeight: theme.fontWeight.bold,
@@ -13,8 +12,9 @@ const StyledDescription = styled(Typography)(({ theme }) => ({
}));
export const CollaborationModeTooltip: FC = () => (
-
open:
@@ -31,9 +31,5 @@ export const CollaborationModeTooltip: FC = () => (
>
}
- arrow
- describeChild
- >
-
-
+ />
);
diff --git a/frontend/src/component/project/Project/ProjectForm/ProjectForm.tsx b/frontend/src/component/project/Project/ProjectForm/ProjectForm.tsx
index d8193e431b..5c8204627c 100644
--- a/frontend/src/component/project/Project/ProjectForm/ProjectForm.tsx
+++ b/frontend/src/component/project/Project/ProjectForm/ProjectForm.tsx
@@ -140,10 +140,15 @@ const ProjectForm: React.FC = ({
condition={Boolean(projectModeFlag)}
show={
<>
-
-
- What is your project collaboration mode?
-
+
+ What is your project collaboration mode?