1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

refactor: light theme colors (#3252)

## About the changes
Refactoring the colors for the light theme to be much easier to continue
with dark mode

This is the first step to finish dark mode

https://linear.app/unleash/project/[low][s][alpha]-dark-mode-in-unleash-admin-ui-31b407d13c4b/1

This PR uses `main-theme` as a placeholder for `dark-theme` for now due
to the new changes. Still need to set the correct values here.

---------

Co-authored-by: Nuno Góis <github@nunogois.com>
This commit is contained in:
NicolaeUnleash 2023-03-06 12:58:36 +02:00 committed by GitHub
parent 62a1e20d83
commit 23af7a3474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
113 changed files with 1160 additions and 785 deletions

View File

@ -8,7 +8,7 @@ const StyledInfoBox = styled('aside')(({ theme }) => ({
padding: theme.spacing(4), padding: theme.spacing(4),
height: '100%', height: '100%',
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
})); }));
const StyledTitle = styled(Typography)(({ theme }) => ({ const StyledTitle = styled(Typography)(({ theme }) => ({
@ -26,7 +26,7 @@ const StyledInfoLabel = styled(Typography)(({ theme }) => ({
const StyledDivider = styled(Divider)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({
margin: `${theme.spacing(2.5)} 0`, margin: `${theme.spacing(2.5)} 0`,
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
})); }));
interface IBillingInformationProps { interface IBillingInformationProps {
instanceStatus: IInstanceStatus; instanceStatus: IInstanceStatus;

View File

@ -53,7 +53,7 @@ const StyledDescriptionBlock = styled('div')(({ theme }) => ({
maxWidth: theme.spacing(60), maxWidth: theme.spacing(60),
padding: theme.spacing(3), padding: theme.spacing(3),
backgroundColor: theme.palette.neutral.light, backgroundColor: theme.palette.neutral.light,
color: theme.palette.grey[900], color: theme.palette.text.primary,
fontSize: theme.fontSizes.smallBody, fontSize: theme.fontSizes.smallBody,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
marginBottom: theme.spacing(2), marginBottom: theme.spacing(2),

View File

@ -15,7 +15,7 @@ const StyledLink = styled(Link)(({ theme }) => ({
const StyledGroupCard = styled('aside')(({ theme }) => ({ const StyledGroupCard = styled('aside')(({ theme }) => ({
padding: theme.spacing(2.5), padding: theme.spacing(2.5),
height: '100%', height: '100%',
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
boxShadow: theme.boxShadows.card, boxShadow: theme.boxShadows.card,
display: 'flex', display: 'flex',

View File

@ -15,7 +15,7 @@ const StyledContainer = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
padding: theme.spacing(3), padding: theme.spacing(3),
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
})); }));

View File

@ -62,7 +62,7 @@ const createInstanceChartOptions = (
tooltip: { tooltip: {
backgroundColor: theme.palette.background.paper, backgroundColor: theme.palette.background.paper,
bodyColor: theme.palette.text.primary, bodyColor: theme.palette.text.primary,
titleColor: theme.palette.grey[700], titleColor: theme.palette.action.active,
borderColor: theme.palette.primary.main, borderColor: theme.palette.primary.main,
borderWidth: 1, borderWidth: 1,
padding: 10, padding: 10,

View File

@ -71,7 +71,7 @@ const StyledRoleRadio = styled(Radio)(({ theme }) => ({
const StyledSecondaryContainer = styled('div')(({ theme }) => ({ const StyledSecondaryContainer = styled('div')(({ theme }) => ({
padding: theme.spacing(3), padding: theme.spacing(3),
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
marginTop: theme.spacing(4), marginTop: theme.spacing(4),
marginBottom: theme.spacing(2), marginBottom: theme.spacing(2),

View File

@ -174,7 +174,7 @@ export const InviteLink: VFC<ICreateInviteLinkProps> = () => {
borderRadius: theme => borderRadius: theme =>
`${theme.shape.borderRadiusMedium}px`, `${theme.shape.borderRadiusMedium}px`,
backgroundColor: theme => backgroundColor: theme =>
theme.palette.secondaryContainer, theme.palette.background.elevation2,
}} }}
> >
<Typography variant="body2" fontWeight="bold"> <Typography variant="body2" fontWeight="bold">

View File

@ -57,7 +57,7 @@ export const InviteLinkBar: VFC = () => {
return ( return (
<Box <Box
sx={{ sx={{
backgroundColor: 'tertiary.background', backgroundColor: 'background.paper',
py: 2, py: 2,
px: 4, px: 4,
mb: 2, mb: 2,

View File

@ -37,7 +37,7 @@ export const LinkField = ({ inviteLink, small }: ILinkFieldProps) => {
return ( return (
<Box <Box
sx={{ sx={{
backgroundColor: theme => theme.palette.secondaryContainer, backgroundColor: theme => theme.palette.background.elevation2,
py: 4, py: 4,
px: 4, px: 4,
borderRadius: theme => `${theme.shape.borderRadius}px`, borderRadius: theme => `${theme.shape.borderRadius}px`,

View File

@ -48,11 +48,11 @@ const StyledSingleChangeBox = styled(Box, {
borderColor: borderColor:
$hasConflict || $isInConflictFeature $hasConflict || $isInConflictFeature
? theme.palette.warning.border ? theme.palette.warning.border
: theme.palette.dividerAlternative, : theme.palette.divider,
borderTopColor: borderTopColor:
($hasConflict || $isAfterWarning) && !$isInConflictFeature ($hasConflict || $isAfterWarning) && !$isInConflictFeature
? theme.palette.warning.border ? theme.palette.warning.border
: theme.palette.dividerAlternative, : theme.palette.divider,
}) })
); );

View File

@ -35,7 +35,7 @@ export const FeatureToggleChanges: FC<IFeatureToggleChanges> = ({
borderColor: theme => borderColor: theme =>
conflict conflict
? theme.palette.warning.border ? theme.palette.warning.border
: theme.palette.tertiary.main, : theme.palette.divider,
borderBottom: 'none', borderBottom: 'none',
overflow: 'hidden', overflow: 'hidden',
})} })}

View File

@ -20,7 +20,7 @@ const CommentPaper = styled(Paper)(({ theme }) => ({
const CommentHeader = styled(Box)(({ theme }) => ({ const CommentHeader = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
borderBottom: '1px solid', borderBottom: '1px solid',
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
paddingBottom: theme.spacing(1.5), paddingBottom: theme.spacing(1.5),
})); }));

View File

@ -26,7 +26,7 @@ export const StyledHeader = styled(Typography)(({ theme }) => ({
export const StyledCard = styled(Card)(({ theme }) => ({ export const StyledCard = styled(Card)(({ theme }) => ({
padding: theme.spacing(0.75, 1.5), padding: theme.spacing(0.75, 1.5),
backgroundColor: theme.palette.tertiary.light, backgroundColor: theme.palette.background.elevation2,
})); }));
export const StyledAvatar = styled(Avatar)(({ theme }) => ({ export const StyledAvatar = styled(Avatar)(({ theme }) => ({

View File

@ -29,26 +29,26 @@ const resolveBorder = (state: ChangeRequestState, theme: Theme) => {
return `2px solid ${theme.palette.primary.main}`; return `2px solid ${theme.palette.primary.main}`;
} }
return `1px solid ${theme.palette.tertiary.main}`; return `1px solid ${theme.palette.divider}`;
}; };
const resolveIconColors = (state: ChangeRequestState, theme: Theme) => { const resolveIconColors = (state: ChangeRequestState, theme: Theme) => {
if (state === 'Approved') { if (state === 'Approved') {
return { return {
bgColor: theme.palette.success.main!, bgColor: theme.palette.success.main!,
svgColor: theme.palette.tertiary.background, svgColor: theme.palette.background.paper,
}; };
} }
if (state === 'Applied') { if (state === 'Applied') {
return { return {
bgColor: theme.palette.primary.main!, bgColor: theme.palette.primary.main!,
svgColor: theme.palette.tertiary.background, svgColor: theme.palette.background.paper,
}; };
} }
return { return {
bgColor: theme.palette.tableHeaderBackground, bgColor: theme.palette.background.elevation2,
svgColor: theme.palette.neutral.main!, svgColor: theme.palette.neutral.main!,
}; };
}; };
@ -117,8 +117,8 @@ const Approved = () => {
<StyledFlexAlignCenterBox> <StyledFlexAlignCenterBox>
<StyledSuccessIcon /> <StyledSuccessIcon />
<Box> <Box>
<StyledReviewTitle color={theme.palette.success.main}> <StyledReviewTitle color={theme.palette.success.dark}>
Changed approved Changes approved
</StyledReviewTitle> </StyledReviewTitle>
<Typography> <Typography>
One approving review from requested approvers One approving review from requested approvers
@ -131,7 +131,7 @@ const Approved = () => {
<StyledFlexAlignCenterBox> <StyledFlexAlignCenterBox>
<StyledSuccessIcon /> <StyledSuccessIcon />
<Box> <Box>
<StyledReviewTitle color={theme.palette.success.main}> <StyledReviewTitle color={theme.palette.success.dark}>
Changes are ready to be applied Changes are ready to be applied
</StyledReviewTitle> </StyledReviewTitle>
</Box> </Box>
@ -152,7 +152,7 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => {
<StyledFlexAlignCenterBox> <StyledFlexAlignCenterBox>
<StyledWarningIcon /> <StyledWarningIcon />
<Box> <Box>
<StyledReviewTitle color={theme.palette.warning.main}> <StyledReviewTitle color={theme.palette.warning.dark}>
Review required Review required
</StyledReviewTitle> </StyledReviewTitle>
<Typography> <Typography>
@ -166,7 +166,7 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => {
<StyledFlexAlignCenterBox> <StyledFlexAlignCenterBox>
<StyledWarningIcon /> <StyledWarningIcon />
<StyledReviewTitle color={theme.palette.warning.main}> <StyledReviewTitle color={theme.palette.warning.dark}>
Apply changes is blocked Apply changes is blocked
</StyledReviewTitle> </StyledReviewTitle>
</StyledFlexAlignCenterBox> </StyledFlexAlignCenterBox>

View File

@ -59,7 +59,7 @@ export const Separator = () => (
sx={{ sx={{
marginLeft: 1.5, marginLeft: 1.5,
marginRight: 1.5, marginRight: 1.5,
color: 'dividerAlternative', color: 'divider',
}} }}
> >
| |

View File

@ -38,7 +38,7 @@ export const EnvironmentChangeRequest: FC<{
padding: 3, padding: 3,
border: '2px solid', border: '2px solid',
mb: 5, mb: 5,
borderColor: theme => theme.palette.secondaryContainer, borderColor: theme => theme.palette.divider,
borderRadius: theme => `${theme.shape.borderRadiusLarge}px`, borderRadius: theme => `${theme.shape.borderRadiusLarge}px`,
}} }}
> >

View File

@ -6,7 +6,7 @@ import { PageHeader } from '../../../common/PageHeader/PageHeader';
const StyledHelpOutline = styled(HelpOutline)(({ theme }) => ({ const StyledHelpOutline = styled(HelpOutline)(({ theme }) => ({
fontSize: theme.fontSizes.mainHeader, fontSize: theme.fontSizes.mainHeader,
marginLeft: '0.3rem', marginLeft: '0.3rem',
color: theme.palette.grey[700], color: theme.palette.action.active,
})); }));
const StyledHeaderHint = styled('div')(({ theme }) => ({ const StyledHeaderHint = styled('div')(({ theme }) => ({

View File

@ -8,7 +8,7 @@ export const useStyles = makeStyles()(theme => ({
borderTopRightRadius: 50, borderTopRightRadius: 50,
borderBottomRightRadius: 50, borderBottomRightRadius: 50,
'& fieldset': { '& fieldset': {
borderColor: theme.palette.grey[300], borderColor: theme.palette.divider,
borderLeftColor: 'transparent', borderLeftColor: 'transparent',
}, },
'&.Mui-focused .MuiOutlinedInput-notchedOutline': { '&.Mui-focused .MuiOutlinedInput-notchedOutline': {

View File

@ -31,7 +31,7 @@ const StyledIcon = styled('div', {
})<{ $disabled: boolean }>(({ theme, $disabled }) => ({ })<{ $disabled: boolean }>(({ theme, $disabled }) => ({
background: $disabled background: $disabled
? theme.palette.primary.light ? theme.palette.primary.light
: theme.palette.featureSegmentSearchBackground, : theme.palette.primary.main,
height: '48px', height: '48px',
width: '48px', width: '48px',
display: 'flex', display: 'flex',
@ -40,7 +40,7 @@ const StyledIcon = styled('div', {
paddingLeft: 6, paddingLeft: 6,
borderTopLeftRadius: '40px', borderTopLeftRadius: '40px',
borderBottomLeftRadius: '40px', borderBottomLeftRadius: '40px',
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
})); }));
const StyledAutocomplete = styled(Autocomplete)({ const StyledAutocomplete = styled(Autocomplete)({

View File

@ -7,7 +7,7 @@ interface ICheckMarkBadgeProps {
} }
const StyledBatch = styled('div')(({ theme }) => ({ const StyledBatch = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.checkmarkBadge, backgroundColor: theme.palette.primary.main,
width: '75px', width: '75px',
height: '75px', height: '75px',
borderRadius: '50px', borderRadius: '50px',
@ -21,12 +21,12 @@ const StyledBatch = styled('div')(({ theme }) => ({
})); }));
const StyledClose = styled(Close)(({ theme }) => ({ const StyledClose = styled(Close)(({ theme }) => ({
color: theme.palette.tertiary.background, color: theme.palette.background.paper,
width: '35px', width: '35px',
height: '35px', height: '35px',
})); }));
const StyledCheck = styled(Check)(({ theme }) => ({ const StyledCheck = styled(Check)(({ theme }) => ({
color: theme.palette.tertiary.background, color: theme.palette.background.paper,
width: '35px', width: '35px',
height: '35px', height: '35px',
})); }));

View File

@ -17,7 +17,7 @@ const StyledCode = styled('pre')(({ theme }) => ({
margin: 0, margin: 0,
wordBreak: 'break-all', wordBreak: 'break-all',
whiteSpace: 'pre-wrap', whiteSpace: 'pre-wrap',
color: theme.palette.formSidebarTextColor, color: theme.palette.common.white,
fontSize: theme.fontSizes.smallBody, fontSize: theme.fontSizes.smallBody,
})); }));

View File

@ -50,9 +50,9 @@ const resolveContextDefinition = (
const StyledForm = styled('div')({ padding: 0, margin: 0, width: '100%' }); const StyledForm = styled('div')({ padding: 0, margin: 0, width: '100%' });
const StyledAccordion = styled(Accordion)(({ theme }) => ({ const StyledAccordion = styled(Accordion)(({ theme }) => ({
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
backgroundColor: theme.palette.constraintAccordion.editBackground, backgroundColor: theme.palette.background.elevation1,
boxShadow: 'none', boxShadow: 'none',
margin: 0, margin: 0,
'& .expanded': { '& .expanded': {

View File

@ -3,7 +3,7 @@ import { styled } from '@mui/material';
const StyledHeader = styled('h3')(({ theme }) => ({ const StyledHeader = styled('h3')(({ theme }) => ({
fontSize: theme.fontSizes.bodySize, fontSize: theme.fontSizes.bodySize,
fontWeight: theme.typography.fontWeightMedium, fontWeight: theme.typography.fontWeightRegular,
marginTop: theme.spacing(2), marginTop: theme.spacing(2),
marginBottom: theme.spacing(0.5), marginBottom: theme.spacing(0.5),
})); }));

View File

@ -12,6 +12,6 @@ export const useStyles = makeStyles()(theme => ({
description: { description: {
lineHeight: 1.33, lineHeight: 1.33,
fontSize: theme.fontSizes.smallerBody, fontSize: theme.fontSizes.smallerBody,
color: theme.palette.grey[700], color: theme.palette.action.active,
}, },
})); }));

View File

@ -6,12 +6,12 @@ export const StyledToggleButtonOff = styled(IconButton)(({ theme }) => ({
minWidth: '28px', minWidth: '28px',
maxWidth: '28px', maxWidth: '28px',
height: 'auto', height: 'auto',
backgroundColor: theme.palette.tertiary.background, backgroundColor: theme.palette.background.paper,
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
padding: '0 1px 0', padding: '0 1px 0',
marginRight: '1rem', marginRight: '1rem',
'&:hover': { '&:hover': {
background: theme.palette.tertiary.contrast[300], background: theme.palette.background.application,
}, },
[theme.breakpoints.between(1101, 1365)]: { [theme.breakpoints.between(1101, 1365)]: {
marginRight: '0.5rem', marginRight: '0.5rem',

View File

@ -46,7 +46,7 @@ const StyledHelpWrapper = styled(Tooltip)(({ theme }) => ({
})); }));
const StyledHelp = styled(HelpOutline)(({ theme }) => ({ const StyledHelp = styled(HelpOutline)(({ theme }) => ({
fill: theme.palette.tertiary.dark, fill: theme.palette.action.active,
[theme.breakpoints.down(860)]: { [theme.breakpoints.down(860)]: {
display: 'none', display: 'none',
}, },
@ -60,7 +60,7 @@ const StyledConstraintLabel = styled('p')(({ theme }) => ({
const StyledAddCustomLabel = styled('div')(({ theme }) => ({ const StyledAddCustomLabel = styled('div')(({ theme }) => ({
marginTop: theme.spacing(1), marginTop: theme.spacing(1),
marginBottom: theme.spacing(1), marginBottom: theme.spacing(1),
color: theme.palette.text.secondary, color: theme.palette.text.primary,
display: 'flex', display: 'flex',
})); }));

View File

@ -27,9 +27,9 @@ interface IConstraintAccordionViewProps {
} }
const StyledAccordion = styled(Accordion)(({ theme }) => ({ const StyledAccordion = styled(Accordion)(({ theme }) => ({
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
backgroundColor: theme.palette.constraintAccordion.background, backgroundColor: theme.palette.background.paper,
boxShadow: 'none', boxShadow: 'none',
margin: 0, margin: 0,

View File

@ -5,7 +5,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
export const StyledIconWrapperBase = styled('div')<{ export const StyledIconWrapperBase = styled('div')<{
prefix?: boolean; prefix?: boolean;
}>(({ theme }) => ({ }>(({ theme }) => ({
backgroundColor: theme.palette.grey[200], backgroundColor: theme.palette.background.elevation2,
width: 24, width: 24,
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',

View File

@ -11,7 +11,7 @@ interface IConstraintOperatorProps {
const StyledContainer = styled('div')(({ theme }) => ({ const StyledContainer = styled('div')(({ theme }) => ({
padding: theme.spacing(0.5, 1.5), padding: theme.spacing(0.5, 1.5),
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.constraintAccordion.operatorBackground, backgroundColor: theme.palette.background.elevation2,
lineHeight: 1.25, lineHeight: 1.25,
})); }));

View File

@ -64,7 +64,7 @@ const StyledMenuItem = styled(MenuItem, {
left: 0, left: 0,
right: 0, right: 0,
borderTop: '1px solid', borderTop: '1px solid',
borderTopColor: theme.palette.tertiary.contrast, borderTopColor: theme.palette.divider,
}, },
} }
: {} : {}

View File

@ -21,7 +21,7 @@ const StyledDialog = styled(Dialog)(({ theme, maxWidth }) => ({
const StyledDialogTitle = styled(DialogTitle)(({ theme }) => ({ const StyledDialogTitle = styled(DialogTitle)(({ theme }) => ({
backgroundColor: theme.palette.primary.main, backgroundColor: theme.palette.primary.main,
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
padding: theme.spacing(3.5, 6), padding: theme.spacing(3.5, 6),
fontWeight: theme.fontWeight.medium, fontWeight: theme.fontWeight.medium,
})); }));

View File

@ -1,16 +1,10 @@
import { Chip, styled } from '@mui/material'; import { Badge } from 'component/common/Badge/Badge';
interface IStatusChip { interface IStatusChip {
stale: boolean; stale: boolean;
showActive?: boolean; showActive?: boolean;
} }
const StyledChip = styled(Chip)(({ theme }) => ({
background: 'transparent',
border: `1px solid ${theme.palette.primary.main}`,
color: theme.palette.primary.main,
}));
export const FeatureStatusChip = ({ export const FeatureStatusChip = ({
stale, stale,
showActive = true, showActive = true,
@ -26,12 +20,9 @@ export const FeatureStatusChip = ({
return ( return (
<div data-loading style={{ marginLeft: '8px' }}> <div data-loading style={{ marginLeft: '8px' }}>
<StyledChip <Badge color={stale ? 'neutral' : 'secondary'} title={title}>
color="primary" {value}
variant="outlined" </Badge>
title={title}
label={value}
/>
</div> </div>
); );
}; };

View File

@ -46,7 +46,7 @@ const StyledContainer = styled('section', {
const StyledRelativeDiv = styled('div')(({ theme }) => relative); const StyledRelativeDiv = styled('div')(({ theme }) => relative);
const StyledFormContent = styled('div')(({ theme }) => ({ const StyledFormContent = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.formBackground, backgroundColor: theme.palette.background.paper,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
padding: theme.spacing(6), padding: theme.spacing(6),
@ -73,7 +73,7 @@ const StyledSidebarDivider = styled(Divider)(({ theme }) => ({
})); }));
const StyledSubtitle = styled('h2')(({ theme }) => ({ const StyledSubtitle = styled('h2')(({ theme }) => ({
color: theme.palette.formSidebarTextColor, color: theme.palette.common.white,
marginBottom: theme.spacing(2), marginBottom: theme.spacing(2),
display: 'flex', display: 'flex',
justifyContent: 'space-between', justifyContent: 'space-between',
@ -83,7 +83,7 @@ const StyledSubtitle = styled('h2')(({ theme }) => ({
})); }));
const StyledIcon = styled(FileCopy)(({ theme }) => ({ const StyledIcon = styled(FileCopy)(({ theme }) => ({
fill: theme.palette.text.tertiaryContrast, fill: theme.palette.primary.contrastText,
})); }));
const StyledMobileGuidanceContainer = styled('div')(() => ({ const StyledMobileGuidanceContainer = styled('div')(() => ({
@ -105,11 +105,11 @@ const StyledMobileGuidanceButton = styled(IconButton)(() => ({
})); }));
const StyledInfoIcon = styled(Info)(({ theme }) => ({ const StyledInfoIcon = styled(Info)(({ theme }) => ({
fill: theme.palette.text.tertiaryContrast, fill: theme.palette.primary.contrastText,
})); }));
const StyledSidebar = styled('aside')(({ theme }) => ({ const StyledSidebar = styled('aside')(({ theme }) => ({
backgroundColor: theme.palette.formSidebar, backgroundColor: theme.palette.background.sidebar,
padding: theme.spacing(4), padding: theme.spacing(4),
flexGrow: 0, flexGrow: 0,
flexShrink: 0, flexShrink: 0,
@ -124,7 +124,7 @@ const StyledSidebar = styled('aside')(({ theme }) => ({
})); }));
const StyledDescription = styled('p')(({ theme }) => ({ const StyledDescription = styled('p')(({ theme }) => ({
color: theme.palette.formSidebarTextColor, color: theme.palette.common.white,
zIndex: 1, zIndex: 1,
position: 'relative', position: 'relative',
})); }));
@ -137,11 +137,11 @@ const StyledLinkContainer = styled('div')(({ theme }) => ({
const StyledLinkIcon = styled(MenuBookIcon)(({ theme }) => ({ const StyledLinkIcon = styled(MenuBookIcon)(({ theme }) => ({
marginRight: theme.spacing(1), marginRight: theme.spacing(1),
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
})); }));
const StyledDocumentationLink = styled('a')(({ theme }) => ({ const StyledDocumentationLink = styled('a')(({ theme }) => ({
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
display: 'block', display: 'block',
'&:hover': { '&:hover': {
textDecoration: 'none', textDecoration: 'none',

View File

@ -5,7 +5,7 @@ const StyledIndicator = styled('div')(({ style, theme }) => ({
width: '25px', width: '25px',
height: '25px', height: '25px',
borderRadius: '50%', borderRadius: '50%',
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
@ -29,7 +29,7 @@ export const GuidanceIndicator: FC<IGuidanceIndicatorProps> = ({
const defaults = { backgroundColor: theme.palette.primary.main }; const defaults = { backgroundColor: theme.palette.primary.main };
if (type === 'secondary') { if (type === 'secondary') {
defaults.backgroundColor = theme.palette.tertiary.dark; defaults.backgroundColor = theme.palette.text.disabled;
} }
return ( return (

View File

@ -46,13 +46,13 @@ const StyledHtmlTooltip = styled(
color: theme.palette.text.primary, color: theme.palette.text.primary,
fontWeight: theme.fontWeight.medium, fontWeight: theme.fontWeight.medium,
maxWidth: 'inherit', maxWidth: 'inherit',
border: `1px solid ${theme.palette.lightBorder}`, border: `1px solid ${theme.palette.divider}`,
maxHeight, maxHeight,
fontSize, fontSize,
}, },
[`& .${tooltipClasses.arrow}`]: { [`& .${tooltipClasses.arrow}`]: {
'&:before': { '&:before': {
border: `1px solid ${theme.palette.lightBorder}`, border: `1px solid ${theme.palette.divider}`,
}, },
color: theme.palette.background.paper, color: theme.palette.background.paper,
}, },

View File

@ -12,7 +12,7 @@ const StyledContainer = styled('div')(({ theme }) => ({
padding: theme.spacing(4), padding: theme.spacing(4),
position: 'fixed', position: 'fixed',
inset: 0, inset: 0,
backgroundColor: theme.palette.text.tertiaryContrast, backgroundColor: theme.palette.primary.contrastText,
width: '100%', width: '100%',
})); }));

View File

@ -38,7 +38,7 @@ const StyledListItemButton = styled(ListItemButton)(({ theme }) => ({
cursor: 'pointer', cursor: 'pointer',
margin: theme.spacing(2, 0), margin: theme.spacing(2, 0),
'&:not(:last-child)': { '&:not(:last-child)': {
borderBottom: `2px solid ${theme.palette.tertiary.contrast}`, borderBottom: `2px solid ${theme.palette.divider}`,
}, },
width: '100%', width: '100%',
})); }));

View File

@ -15,7 +15,7 @@ import { usePageTitle } from 'hooks/usePageTitle';
const StyledDivider = styled(Divider)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({
height: '100%', height: '100%',
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
width: '1px', width: '1px',
display: 'inline-block', display: 'inline-block',
marginLeft: theme.spacing(2), marginLeft: theme.spacing(2),

View File

@ -18,7 +18,7 @@ const PercentageCircle = ({
transform: 'rotate(-90deg)', transform: 'rotate(-90deg)',
height: size, height: size,
width: size, width: size,
background: theme.palette.grey[200], background: theme.palette.background.elevation2,
}; };
// The percentage circle used to be drawn by CSS with a conic-gradient, // The percentage circle used to be drawn by CSS with a conic-gradient,

View File

@ -10,7 +10,9 @@ const PremiumFeatureWrapper = styled(Box, {
flexDirection: 'column', flexDirection: 'column',
alignItems: tooltip ? 'start' : 'center', alignItems: tooltip ? 'start' : 'center',
textAlign: tooltip ? 'left' : 'center', textAlign: tooltip ? 'left' : 'center',
backgroundColor: tooltip ? 'transparent' : theme.palette.secondaryContainer, backgroundColor: tooltip
? 'transparent'
: theme.palette.background.elevation2,
borderRadius: tooltip ? 0 : theme.shape.borderRadiusLarge, borderRadius: tooltip ? 0 : theme.shape.borderRadiusLarge,
padding: tooltip ? theme.spacing(1, 0.5) : theme.spacing(7.5, 1), padding: tooltip ? theme.spacing(1, 0.5) : theme.spacing(7.5, 1),
})); }));

View File

@ -101,7 +101,7 @@ export const Search = ({
<SearchIcon <SearchIcon
sx={{ sx={{
mr: 1, mr: 1,
color: theme => theme.palette.inactiveIcon, color: theme => theme.palette.action.disabled,
}} }}
/> />
<StyledInputBase <StyledInputBase

View File

@ -12,7 +12,7 @@ const StyledHeader = styled('span')(({ theme }) => ({
})); }));
const StyledCode = styled('span')(({ theme }) => ({ const StyledCode = styled('span')(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
color: theme.palette.text.primary, color: theme.palette.text.primary,
padding: theme.spacing(0, 0.5), padding: theme.spacing(0, 0.5),
borderRadius: theme.spacing(0.5), borderRadius: theme.spacing(0.5),

View File

@ -9,7 +9,7 @@ const StyledHeader = styled('span')(({ theme }) => ({
})); }));
const StyledCode = styled('span')(({ theme }) => ({ const StyledCode = styled('span')(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
color: theme.palette.text.primary, color: theme.palette.text.primary,
padding: theme.spacing(0, 0.5), padding: theme.spacing(0, 0.5),
borderRadius: theme.spacing(0.5), borderRadius: theme.spacing(0.5),

View File

@ -38,12 +38,12 @@ const StyledFilterList = styled(FilterList)(({ theme }) => ({
})); }));
const StyledDivider = styled(Divider)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({
border: `1px dashed ${theme.palette.dividerAlternative}`, border: `1px dashed ${theme.palette.divider}`,
margin: theme.spacing(1.5, 0), margin: theme.spacing(1.5, 0),
})); }));
const StyledCode = styled('span')(({ theme }) => ({ const StyledCode = styled('span')(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
color: theme.palette.text.primary, color: theme.palette.text.primary,
padding: theme.spacing(0, 0.5), padding: theme.spacing(0, 0.5),
borderRadius: theme.spacing(0.5), borderRadius: theme.spacing(0.5),

View File

@ -21,7 +21,7 @@ interface ISegmentItemProps {
} }
const StyledAccordion = styled(Accordion)(({ theme }) => ({ const StyledAccordion = styled(Accordion)(({ theme }) => ({
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
backgroundColor: theme.palette.background.paper, backgroundColor: theme.palette.background.paper,
boxShadow: 'none', boxShadow: 'none',

View File

@ -99,7 +99,7 @@ export const StrategyItemContainer: FC<IStrategyItemContainerProps> = ({
/> />
<Icon <Icon
sx={{ sx={{
fill: theme => theme.palette.inactiveIcon, fill: theme => theme.palette.action.disabled,
}} }}
/> />
<StringTruncator <StringTruncator

View File

@ -9,7 +9,7 @@ const StyledContent = styled('div')(({ theme }) => ({
padding: theme.spacing(0.75, 1), padding: theme.spacing(0.75, 1),
color: theme.palette.text.primary, color: theme.palette.text.primary,
fontSize: theme.fontSizes.smallerBody, fontSize: theme.fontSizes.smallerBody,
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
position: 'absolute', position: 'absolute',
zIndex: theme.zIndex.fab, zIndex: theme.zIndex.fab,
@ -23,8 +23,7 @@ const StyledCenteredContent = styled(StyledContent)(({ theme }) => ({
top: '50%', top: '50%',
left: '50%', left: '50%',
transform: 'translate(-50%, -50%)', transform: 'translate(-50%, -50%)',
backgroundColor: theme.palette.activityIndicators.primary, backgroundColor: theme.palette.seen.primary,
border: `1px solid ${theme.palette.primary.border}`,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
padding: theme.spacing(0.75, 1.5), padding: theme.spacing(0.75, 1.5),
})); }));

View File

@ -51,7 +51,7 @@ export const TabNav = ({
sx={{ sx={{
backgroundColor: theme => theme.palette.background.paper, backgroundColor: theme => theme.palette.background.paper,
borderBottom: '1px solid', borderBottom: '1px solid',
borderBottomColor: theme => theme.palette.grey[300], borderBottomColor: theme => theme.palette.divider,
borderRadius: 0, borderRadius: 0,
}} }}
> >

View File

@ -22,7 +22,7 @@ export const StyledTableCell = styled(TableCell, {
...(isSortable && { ...(isSortable && {
padding: 0, padding: 0,
'&:hover, &:focus': { '&:hover, &:focus': {
backgroundColor: theme.palette.tableHeaderHover, backgroundColor: theme.palette.table.headerHover,
'& svg': { '& svg': {
color: 'inherit', color: 'inherit',
}, },

View File

@ -36,7 +36,7 @@ export const SortArrow: VFC<ISortArrowProps> = ({
<KeyboardArrowDown <KeyboardArrowDown
sx={theme => ({ sx={theme => ({
...iconStyle(theme), ...iconStyle(theme),
color: theme.palette.tableHeaderColor, color: theme.palette.table.headerColor,
})} })}
className={className} className={className}
fontSize="inherit" fontSize="inherit"
@ -46,7 +46,7 @@ export const SortArrow: VFC<ISortArrowProps> = ({
<KeyboardArrowUp <KeyboardArrowUp
sx={theme => ({ sx={theme => ({
...iconStyle(theme), ...iconStyle(theme),
color: theme.palette.tableHeaderColor, color: theme.palette.table.headerColor,
})} })}
className={className} className={className}
fontSize="inherit" fontSize="inherit"

View File

@ -1,5 +1,5 @@
import { VFC } from 'react'; import { VFC } from 'react';
import { styled, TableHead, TableRow } from '@mui/material'; import { TableHead, TableRow } from '@mui/material';
import { HeaderGroup } from 'react-table'; import { HeaderGroup } from 'react-table';
import { CellSortable } from './CellSortable/CellSortable'; import { CellSortable } from './CellSortable/CellSortable';
@ -9,23 +9,6 @@ interface ISortableTableHeaderProps {
flex?: boolean; flex?: boolean;
} }
const StyledTableRow = styled(TableRow)(({ theme }) => ({
'& > th': {
height: theme.shape.tableRowHeightCompact,
border: 0,
backgroundColor: theme.palette.tableHeaderBackground,
color: theme.palette.tableHeaderColor,
'&:first-of-type': {
borderTopLeftRadius: theme.shape.borderRadiusMedium,
borderBottomLeftRadius: theme.shape.borderRadiusMedium,
},
'&:last-of-type': {
borderTopRightRadius: theme.shape.borderRadiusMedium,
borderBottomRightRadius: theme.shape.borderRadiusMedium,
},
},
}));
export const SortableTableHeader: VFC<ISortableTableHeaderProps> = ({ export const SortableTableHeader: VFC<ISortableTableHeaderProps> = ({
headerGroups, headerGroups,
className, className,
@ -33,7 +16,7 @@ export const SortableTableHeader: VFC<ISortableTableHeaderProps> = ({
}) => ( }) => (
<TableHead className={className}> <TableHead className={className}>
{headerGroups.map(headerGroup => ( {headerGroups.map(headerGroup => (
<StyledTableRow {...headerGroup.getHeaderGroupProps()}> <TableRow {...headerGroup.getHeaderGroupProps()}>
{headerGroup.headers.map((column: HeaderGroup) => { {headerGroup.headers.map((column: HeaderGroup) => {
const content = column.render('Header'); const content = column.render('Header');
@ -64,7 +47,7 @@ export const SortableTableHeader: VFC<ISortableTableHeaderProps> = ({
</CellSortable> </CellSortable>
); );
})} })}
</StyledTableRow> </TableRow>
))} ))}
</TableHead> </TableHead>
); );

View File

@ -9,7 +9,7 @@ const StyledContainer = styled(Box)(({ theme }) => ({
})); }));
const StyledDivider = styled(Divider)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
height: theme.spacing(3), height: theme.spacing(3),
margin: theme.spacing(0, 2), margin: theme.spacing(0, 2),
})); }));

View File

@ -30,21 +30,21 @@ const useFeatureColor = () => {
return (unit?: string): string => { return (unit?: string): string => {
switch (unit) { switch (unit) {
case 'second': case 'second':
return theme.palette.activityIndicators.recent; return theme.palette.seen.recent;
case 'minute': case 'minute':
return theme.palette.activityIndicators.recent; return theme.palette.seen.recent;
case 'hour': case 'hour':
return theme.palette.activityIndicators.recent; return theme.palette.seen.recent;
case 'day': case 'day':
return theme.palette.activityIndicators.recent; return theme.palette.seen.recent;
case 'week': case 'week':
return theme.palette.activityIndicators.inactive; return theme.palette.seen.inactive;
case 'month': case 'month':
return theme.palette.activityIndicators.abandoned; return theme.palette.seen.abandoned;
case 'year': case 'year':
return theme.palette.activityIndicators.abandoned; return theme.palette.seen.abandoned;
default: default:
return theme.palette.activityIndicators.unknown; return theme.palette.seen.unknown;
} }
}; };
}; };

View File

@ -8,6 +8,6 @@ export const useStyles = makeStyles()(theme => ({
alignItems: 'center', alignItems: 'center',
}, },
icon: { icon: {
color: theme.palette.inactiveIcon, color: theme.palette.action.disabled,
}, },
})); }));

View File

@ -16,7 +16,7 @@ const StyledContainer = styled('li')(({ theme }) => ({
alignItems: 'start', alignItems: 'start',
gap: theme.spacing(1), gap: theme.spacing(1),
padding: theme.spacing(1), padding: theme.spacing(1),
background: theme.palette.secondaryContainer, background: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
wordBreak: 'break-word', wordBreak: 'break-word',
})); }));

View File

@ -59,7 +59,7 @@ const StyledInput = styled(Input)(({ theme }) => ({
const StyledSecondaryContainer = styled('div')(({ theme }) => ({ const StyledSecondaryContainer = styled('div')(({ theme }) => ({
padding: theme.spacing(3), padding: theme.spacing(3),
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
marginTop: theme.spacing(4), marginTop: theme.spacing(4),
})); }));

View File

@ -18,10 +18,10 @@ const EventDiff = ({ entry }: IEventDiffProps) => {
const theme = useTheme(); const theme = useTheme();
const styles: Record<string, CSSProperties> = { const styles: Record<string, CSSProperties> = {
A: { color: theme.palette.code.edited }, // array edited A: { color: theme.palette.eventLog.edited }, // array edited
E: { color: theme.palette.code.edited }, // edited E: { color: theme.palette.eventLog.edited }, // edited
D: { color: theme.palette.code.diffSub }, // deleted D: { color: theme.palette.eventLog.diffSub }, // deleted
N: { color: theme.palette.code.diffAdd }, // added N: { color: theme.palette.eventLog.diffAdd }, // added
}; };
const diffs = const diffs =

View File

@ -57,7 +57,7 @@ const StyledHr = styled('hr')(({ theme }) => ({
height: '1px', height: '1px',
margin: theme.spacing(2, 0), margin: theme.spacing(2, 0),
border: 'none', border: 'none',
background: theme.palette.tertiary.light, background: theme.palette.background.elevation2,
})); }));
const StyledButtons = styled('div')(({ theme }) => ({ const StyledButtons = styled('div')(({ theme }) => ({

View File

@ -26,7 +26,7 @@ const StyledIcon = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
color: theme.palette.inactiveIcon, color: theme.palette.action.disabled,
'& svg': { '& svg': {
width: theme.spacing(2.5), width: theme.spacing(2.5),

View File

@ -48,7 +48,7 @@ const StyledCard = styled(Link)(({ theme }) => ({
lineHeight: 1.25, lineHeight: 1.25,
borderWidth: '1px', borderWidth: '1px',
borderStyle: 'solid', borderStyle: 'solid',
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
borderRadius: theme.spacing(1), borderRadius: theme.spacing(1),
'&:hover, &:focus': { '&:hover, &:focus': {
borderColor: theme.palette.primary.main, borderColor: theme.palette.primary.main,

View File

@ -22,8 +22,8 @@ const StyledChip = styled('span')(({ theme }) => ({
paddingBlockStart: theme.spacing(0.5), paddingBlockStart: theme.spacing(0.5),
paddingBlockEnd: theme.spacing(0.5), paddingBlockEnd: theme.spacing(0.5),
borderRadius: '100rem', borderRadius: '100rem',
background: theme.palette.featureStrategySegmentChipBackground, background: theme.palette.primary.main,
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
})); }));
const StyledButton = styled('button')(({ theme }) => ({ const StyledButton = styled('button')(({ theme }) => ({

View File

@ -30,7 +30,7 @@ const StyledAnd = styled('p')(({ theme }) => ({
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
lineHeight: 1, lineHeight: 1,
color: theme.palette.text.primary, color: theme.palette.text.primary,
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
})); }));
export const FeatureStrategySegmentList = ({ export const FeatureStrategySegmentList = ({

View File

@ -22,7 +22,7 @@ export const createChartOptions = (
tooltip: { tooltip: {
backgroundColor: 'white', backgroundColor: 'white',
bodyColor: theme.palette.text.primary, bodyColor: theme.palette.text.primary,
titleColor: theme.palette.grey[700], titleColor: theme.palette.action.active,
borderColor: theme.palette.primary.main, borderColor: theme.palette.primary.main,
borderWidth: 1, borderWidth: 1,
padding: 10, padding: 10,

View File

@ -31,6 +31,9 @@ const StyledItem = styled('li')(({ theme }) => ({
backgroundColor: theme.palette.primary.main, backgroundColor: theme.palette.primary.main,
color: theme.palette.primary.contrastText, color: theme.palette.primary.contrastText,
}, },
'& > [aria-pressed=true]:hover': {
backgroundColor: theme.palette.primary.light,
},
})); }));
export const FeatureMetricsChips = ({ export const FeatureMetricsChips = ({

View File

@ -39,7 +39,7 @@ export const FeatureMetricsContent = ({
borderTop={1} borderTop={1}
pt={2} pt={2}
mt={3} mt={3}
borderColor={theme.palette.grey[200]} borderColor={theme.palette.divider}
> >
<LazyFeatureMetricsChart <LazyFeatureMetricsChart
metrics={metrics} metrics={metrics}

View File

@ -37,7 +37,7 @@ const StyledText = styled('p')(({ theme }) => ({
padding: theme.spacing(2, 0, 0, 0), padding: theme.spacing(2, 0, 0, 0),
borderTopWidth: '1px', borderTopWidth: '1px',
borderTopStyle: 'solid', borderTopStyle: 'solid',
borderTopColor: theme.palette.dividerAlternative, borderTopColor: theme.palette.divider,
fontSize: theme.fontSizes.smallerBody, fontSize: theme.fontSizes.smallerBody,
color: theme.palette.text.secondary, color: theme.palette.text.secondary,
})); }));

View File

@ -16,6 +16,7 @@ import {
parseParameterStrings, parseParameterStrings,
} from 'utils/parseParameter'; } from 'utils/parseParameter';
import StringTruncator from 'component/common/StringTruncator/StringTruncator'; import StringTruncator from 'component/common/StringTruncator/StringTruncator';
import { Badge } from 'component/common/Badge/Badge';
interface IStrategyExecutionProps { interface IStrategyExecutionProps {
strategy: IFeatureStrategyPayload; strategy: IFeatureStrategyPayload;
@ -29,7 +30,7 @@ const NoItems: VFC = () => (
const StyledValueContainer = styled(Box)(({ theme }) => ({ const StyledValueContainer = styled(Box)(({ theme }) => ({
padding: theme.spacing(2, 3), padding: theme.spacing(2, 3),
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
})); }));
@ -72,13 +73,8 @@ export const StrategyExecution: VFC<IStrategyExecutionProps> = ({
/> />
</Box> </Box>
<div> <div>
<Chip <Badge color="success">{percentage}%</Badge> of
color="success" your base{' '}
variant="outlined"
size="small"
label={`${percentage}%`}
/>{' '}
of your base{' '}
{constraints.length > 0 {constraints.length > 0
? 'who match constraints' ? 'who match constraints'
: ''}{' '} : ''}{' '}
@ -167,12 +163,7 @@ export const StrategyExecution: VFC<IStrategyExecutionProps> = ({
<div> <div>
{nameItem} {nameItem}
{isSetTo} {isSetTo}
<Chip <Badge color="success">{percentage}%</Badge>
color="success"
variant="outlined"
size="small"
label={`${percentage}%`}
/>
</div> </div>
</StyledValueContainer> </StyledValueContainer>
) : null; ) : null;
@ -187,16 +178,15 @@ export const StrategyExecution: VFC<IStrategyExecutionProps> = ({
text={name} text={name}
/> />
{isSetTo} {isSetTo}
<Chip <Badge
color={ color={
parameters[name] === 'true' parameters[name] === 'true'
? 'success' ? 'success'
: 'error' : 'error'
} }
variant="outlined" >
size="small" {parameters[name]}
label={parameters[name]} </Badge>
/>
</StyledValueContainer> </StyledValueContainer>
) : null; ) : null;
@ -266,13 +256,7 @@ export const StrategyExecution: VFC<IStrategyExecutionProps> = ({
strategy.name === 'default' && ( strategy.name === 'default' && (
<> <>
<StyledValueContainer sx={{ width: '100%' }}> <StyledValueContainer sx={{ width: '100%' }}>
The standard strategy is{' '} The standard strategy is <Badge color="success">ON</Badge>{' '}
<Chip
variant="outlined"
size="small"
color="success"
label="ON"
/>{' '}
for all users. for all users.
</StyledValueContainer> </StyledValueContainer>
</> </>

View File

@ -3,7 +3,6 @@ import {
AccordionDetails, AccordionDetails,
AccordionSummary, AccordionSummary,
Box, Box,
Chip,
styled, styled,
} from '@mui/material'; } from '@mui/material';
import { ExpandMore } from '@mui/icons-material'; import { ExpandMore } from '@mui/icons-material';
@ -22,6 +21,7 @@ import { FEATURE_ENVIRONMENT_ACCORDION } from 'utils/testIds';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
import { FeatureStrategyIcons } from 'component/feature/FeatureStrategy/FeatureStrategyIcons/FeatureStrategyIcons'; import { FeatureStrategyIcons } from 'component/feature/FeatureStrategy/FeatureStrategyIcons/FeatureStrategyIcons';
import { useGlobalLocalStorage } from 'hooks/useGlobalLocalStorage'; import { useGlobalLocalStorage } from 'hooks/useGlobalLocalStorage';
import { Badge } from 'component/common/Badge/Badge';
interface IFeatureOverviewEnvironmentProps { interface IFeatureOverviewEnvironmentProps {
env: IFeatureEnvironment; env: IFeatureEnvironment;
@ -55,7 +55,7 @@ const StyledAccordionDetails = styled(AccordionDetails, {
shouldForwardProp: prop => prop !== 'enabled', shouldForwardProp: prop => prop !== 'enabled',
})<{ enabled: boolean }>(({ theme, enabled }) => ({ })<{ enabled: boolean }>(({ theme, enabled }) => ({
padding: theme.spacing(3), padding: theme.spacing(3),
background: theme.palette.secondaryContainer, background: theme.palette.background.elevation2,
borderBottomLeftRadius: theme.shape.borderRadiusLarge, borderBottomLeftRadius: theme.shape.borderRadiusLarge,
borderBottomRightRadius: theme.shape.borderRadiusLarge, borderBottomRightRadius: theme.shape.borderRadiusLarge,
borderBottom: `4px solid ${ borderBottom: `4px solid ${
@ -162,12 +162,12 @@ const FeatureOverviewEnvironment = ({
<ConditionallyRender <ConditionallyRender
condition={!env.enabled} condition={!env.enabled}
show={ show={
<Chip <Badge
size="small" color="neutral"
variant="outlined"
label="Disabled"
sx={{ ml: 1 }} sx={{ ml: 1 }}
/> >
Disabled
</Badge>
} }
/> />
</StyledHeaderTitle> </StyledHeaderTitle>

View File

@ -40,7 +40,7 @@ const StyledInfoParagraph = styled('p')(({ theme }) => ({
})); }));
const StyledIcon = styled(FiberManualRecord)(({ theme }) => ({ const StyledIcon = styled(FiberManualRecord)(({ theme }) => ({
fill: theme.palette.standaloneBackground, fill: theme.palette.background.application,
height: '75px', height: '75px',
width: '75px', width: '75px',
[theme.breakpoints.down(500)]: { [theme.breakpoints.down(500)]: {

View File

@ -14,7 +14,7 @@ const SeparatorContainer = styled('div')(({ theme }) => ({
transform: 'translateY(-50%)', transform: 'translateY(-50%)',
height: 2, height: 2,
width: '100%', width: '100%',
backgroundColor: theme.palette.dividerAlternative, backgroundColor: theme.palette.divider,
}, },
})); }));
@ -22,7 +22,7 @@ const SeparatorContent = styled('span')(({ theme }) => ({
fontSize: theme.fontSizes.bodySize, fontSize: theme.fontSizes.bodySize,
textAlign: 'center', textAlign: 'center',
padding: '0 1rem', padding: '0 1rem',
background: theme.palette.secondaryContainer, background: theme.palette.background.elevation2,
position: 'relative', position: 'relative',
maxWidth: '80%', maxWidth: '80%',
color: theme.palette.text.primary, color: theme.palette.text.primary,

View File

@ -10,8 +10,8 @@ import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
const StyledContainer = styled('div')(({ theme }) => ({ const StyledContainer = styled('div')(({ theme }) => ({
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.featureMetaData, backgroundColor: theme.palette.background.sidebar,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
maxWidth: '350px', maxWidth: '350px',
@ -54,7 +54,7 @@ const StyledBodyItem = styled('span')(({ theme }) => ({
const StyledDescriptionContainer = styled('div')(({ theme }) => ({ const StyledDescriptionContainer = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
})); }));
const FeatureOverviewMetaData = () => { const FeatureOverviewMetaData = () => {
@ -74,7 +74,7 @@ const FeatureOverviewMetaData = () => {
marginRight: theme.spacing(2), marginRight: theme.spacing(2),
height: '40px', height: '40px',
width: '40px', width: '40px',
fill: theme.palette.text.tertiaryContrast, fill: theme.palette.primary.contrastText,
})} })}
/>{' '} />{' '}
<StyledHeader>{capitalize(type || '')} toggle</StyledHeader> <StyledHeader>{capitalize(type || '')} toggle</StyledHeader>
@ -101,8 +101,8 @@ const FeatureOverviewMetaData = () => {
> >
<Edit <Edit
sx={theme => ({ sx={theme => ({
color: theme.palette.text color: theme.palette.primary
.tertiaryContrast, .contrastText,
})} })}
/> />
</PermissionIconButton> </PermissionIconButton>
@ -124,8 +124,8 @@ const FeatureOverviewMetaData = () => {
> >
<Edit <Edit
sx={theme => ({ sx={theme => ({
color: theme.palette.text color: theme.palette.primary
.tertiaryContrast, .contrastText,
})} })}
/> />
</PermissionIconButton> </PermissionIconButton>

View File

@ -8,9 +8,7 @@ const StyledVisibilityToggle = styled(IconButton, {
})<{ visibilityOff: boolean }>(({ theme, visibilityOff }) => ({ })<{ visibilityOff: boolean }>(({ theme, visibilityOff }) => ({
marginLeft: 'auto', marginLeft: 'auto',
marginRight: theme.spacing(-1), marginRight: theme.spacing(-1),
color: visibilityOff color: visibilityOff ? theme.palette.neutral.main : theme.palette.divider,
? theme.palette.neutral.main
: theme.palette.tertiary.main,
'&:hover': { '&:hover': {
color: theme.palette.neutral.main, color: theme.palette.neutral.main,
}, },

View File

@ -27,9 +27,6 @@ const StyledTagContainer = styled('div')(({ theme }) => ({
const StyledChip = styled(Chip)(({ theme }) => ({ const StyledChip = styled(Chip)(({ theme }) => ({
fontSize: theme.fontSizes.smallBody, fontSize: theme.fontSizes.smallBody,
'.MuiChip-deleteIcon': {
color: theme.palette.neutral.main,
},
})); }));
const StyledDivider = styled(Divider)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({

View File

@ -8,7 +8,7 @@ import { Badge } from 'component/common/Badge/Badge';
const StyledCard = styled('div')(({ theme }) => ({ const StyledCard = styled('div')(({ theme }) => ({
padding: theme.spacing(3), padding: theme.spacing(3),
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
'&:not(:last-child)': { '&:not(:last-child)': {
marginBottom: theme.spacing(3), marginBottom: theme.spacing(3),
}, },

View File

@ -68,7 +68,7 @@ const StyledToolbarContainer = styled('div')({
const StyledSeparator = styled('div')(({ theme }) => ({ const StyledSeparator = styled('div')(({ theme }) => ({
width: '100%', width: '100%',
backgroundColor: theme.palette.tertiary.light, backgroundColor: theme.palette.background.elevation2,
height: '1px', height: '1px',
})); }));

View File

@ -43,7 +43,7 @@ const StyledClose = styled('div')({
const StyledCloseIcon = styled(CloseOutlined)(({ theme }) => ({ const StyledCloseIcon = styled(CloseOutlined)(({ theme }) => ({
fontSize: '1.5rem', fontSize: '1.5rem',
color: theme.palette.inactiveIcon, color: theme.palette.action.disabled,
})); }));
export const FeedbackCES = ({ state }: IFeedbackCESProps) => { export const FeedbackCES = ({ state }: IFeedbackCESProps) => {

View File

@ -41,7 +41,7 @@ const StyledScoreValue = styled('label')(({ theme }) => ({
display: 'grid', display: 'grid',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
background: theme.palette.grey[300], background: theme.palette.divider,
width: '3rem', width: '3rem',
height: '3rem', height: '3rem',
borderRadius: '10rem', borderRadius: '10rem',
@ -53,7 +53,7 @@ const StyledScoreValue = styled('label')(({ theme }) => ({
'& input:checked + span': { '& input:checked + span': {
fontWeight: theme.fontWeight.bold, fontWeight: theme.fontWeight.bold,
background: theme.palette.primary.main, background: theme.palette.primary.main,
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
}, },
'& input:focus-visible + span': { '& input:focus-visible + span': {
outline: '2px solid', outline: '2px solid',

View File

@ -29,7 +29,7 @@ exports[`FeedbackCESForm 1`] = `
Very difficult Very difficult
</span> </span>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -41,7 +41,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -53,7 +53,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -65,7 +65,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -77,7 +77,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -89,7 +89,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -101,7 +101,7 @@ exports[`FeedbackCESForm 1`] = `
</span> </span>
</label> </label>
<label <label
class="css-112g122" class="css-ruqihc"
> >
<input <input
name="score" name="score"
@ -131,7 +131,7 @@ exports[`FeedbackCESForm 1`] = `
class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-wb57ya-MuiFormControl-root-MuiTextField-root" class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-wb57ya-MuiFormControl-root-MuiTextField-root"
> >
<div <div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-multiline css-1qvtpcv-MuiInputBase-root-MuiOutlinedInput-root" class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-multiline css-1nhioic-MuiInputBase-root-MuiOutlinedInput-root"
> >
<textarea <textarea
aria-invalid="false" aria-invalid="false"
@ -169,7 +169,7 @@ exports[`FeedbackCESForm 1`] = `
hidden="" hidden=""
> >
<button <button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-w5plom-MuiButtonBase-root-MuiButton-root" class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1bqn98c-MuiButtonBase-root-MuiButton-root"
disabled="" disabled=""
tabindex="-1" tabindex="-1"
type="submit" type="submit"

View File

@ -28,7 +28,7 @@ const MainLayoutContentWrapper = styled('main')(({ theme }) => ({
overflow: 'auto', // prevent margin collapsing overflow: 'auto', // prevent margin collapsing
flex: 1, flex: 1,
width: '100%', width: '100%',
backgroundColor: theme.palette.contentWrapper, backgroundColor: theme.palette.background.application,
position: 'relative', position: 'relative',
})); }));

View File

@ -11,7 +11,7 @@ const StyledFooter = styled('footer')(({ theme }) => ({
width: '100%', width: '100%',
flexGrow: 1, flexGrow: 1,
zIndex: 100, zIndex: 100,
backgroundColor: theme.palette.footerBackground, backgroundColor: theme.palette.background.paper,
})); }));
const StyledList = styled(List)({ const StyledList = styled(List)({

View File

@ -53,7 +53,7 @@ exports[`should render DrawerMenu 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -72,7 +72,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -91,7 +91,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -111,7 +111,7 @@ exports[`should render DrawerMenu 1`] = `
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -131,7 +131,7 @@ exports[`should render DrawerMenu 1`] = `
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -150,7 +150,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -169,7 +169,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -188,7 +188,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -224,7 +224,7 @@ exports[`should render DrawerMenu 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -243,7 +243,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -262,7 +262,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -281,7 +281,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -300,7 +300,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -334,7 +334,7 @@ exports[`should render DrawerMenu 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -353,7 +353,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -372,7 +372,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -391,7 +391,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -410,7 +410,7 @@ exports[`should render DrawerMenu 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -498,7 +498,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -517,7 +517,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -536,7 +536,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -556,7 +556,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -576,7 +576,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -595,7 +595,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -614,7 +614,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -633,7 +633,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -669,7 +669,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -688,7 +688,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -707,7 +707,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -726,7 +726,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -745,7 +745,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -779,7 +779,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root" className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
> >
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -798,7 +798,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -817,7 +817,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -836,7 +836,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div
@ -855,7 +855,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
</div> </div>
</li> </li>
<li <li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1aaw0ru-MuiListItem-root" className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1j1wl1e-MuiListItem-root"
disabled={false} disabled={false}
> >
<div <div

View File

@ -42,7 +42,7 @@ import { useThemeMode } from 'hooks/useThemeMode';
import { Notifications } from 'component/common/Notifications/Notifications'; import { Notifications } from 'component/common/Notifications/Notifications';
const StyledHeader = styled(AppBar)(({ theme }) => ({ const StyledHeader = styled(AppBar)(({ theme }) => ({
backgroundColor: theme.palette.headerBackground, backgroundColor: theme.palette.background.paper,
padding: theme.spacing(1), padding: theme.spacing(1),
boxShadow: 'none', boxShadow: 'none',
position: 'relative', position: 'relative',

View File

@ -159,7 +159,7 @@ export const Playground: VFC<{}> = () => {
> >
<Box <Box
sx={{ sx={{
background: theme.palette.playgroundBackground, background: theme.palette.background.elevation2,
borderBottomLeftRadius: theme.shape.borderRadiusMedium, borderBottomLeftRadius: theme.shape.borderRadiusMedium,
}} }}
> >
@ -170,7 +170,7 @@ export const Playground: VFC<{}> = () => {
py: 3, py: 3,
mb: 4, mb: 4,
mt: 2, mt: 2,
background: theme.palette.playgroundBackground, background: theme.palette.background.elevation2,
transition: 'width 0.4s ease', transition: 'width 0.4s ease',
minWidth: matches ? 'auto' : '500px', minWidth: matches ? 'auto' : '500px',
width: formWidth, width: formWidth,

View File

@ -25,7 +25,7 @@ const StyledEditorHeader = styled('aside')(({ theme }) => ({
display: 'flex', display: 'flex',
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
border: `1px solid ${theme.palette.lightBorder}`, border: `1px solid ${theme.palette.divider}`,
borderBottom: 'none', borderBottom: 'none',
})); }));
@ -52,7 +52,7 @@ const EditorStatusOk = () => {
return ( return (
<StyledEditorStatusContainer <StyledEditorStatusContainer
style={{ style={{
color: theme.palette.text.tertiaryContrast, color: theme.palette.success.contrastText,
backgroundColor: theme.palette.success.main, backgroundColor: theme.palette.success.main,
}} }}
> >
@ -67,7 +67,7 @@ const EditorStatusError = () => {
return ( return (
<StyledEditorStatusContainer <StyledEditorStatusContainer
style={{ style={{
color: theme.palette.text.tertiaryContrast, color: theme.palette.error.contrastText,
backgroundColor: theme.palette.error.main, backgroundColor: theme.palette.error.main,
}} }}
> >
@ -117,7 +117,7 @@ export const PlaygroundEditor: VFC<IPlaygroundEditorProps> = ({
extensions={[json()]} extensions={[json()]}
onChange={onCodeFieldChange} onChange={onCodeFieldChange}
style={{ style={{
border: `1px solid ${theme.palette.lightBorder}`, border: `1px solid ${theme.palette.divider}`,
borderTop: 'none', borderTop: 'none',
borderBottomLeftRadius: theme.shape.borderRadiusMedium, borderBottomLeftRadius: theme.shape.borderRadiusMedium,
borderBottomRightRadius: theme.shape.borderRadiusMedium, borderBottomRightRadius: theme.shape.borderRadiusMedium,

View File

@ -49,7 +49,7 @@ export const PlaygroundForm: VFC<IPlaygroundFormProps> = ({
variant="fullWidth" variant="fullWidth"
sx={{ sx={{
mb: 2, mb: 2,
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
borderStyle: 'dashed', borderStyle: 'dashed',
}} }}
/> />
@ -60,7 +60,7 @@ export const PlaygroundForm: VFC<IPlaygroundFormProps> = ({
sx={{ sx={{
mt: 3, mt: 3,
mb: 2, mb: 2,
borderColor: theme.palette.dividerAlternative, borderColor: theme.palette.divider,
}} }}
/> />
<Box <Box

View File

@ -9,7 +9,7 @@ interface IContextBannerProps {
} }
const StyledContextFieldList = styled('ul')(({ theme }) => ({ const StyledContextFieldList = styled('ul')(({ theme }) => ({
color: colors.black, color: theme.palette.text.primary,
listStyleType: 'none', listStyleType: 'none',
padding: theme.spacing(2), padding: theme.spacing(2),
})); }));

View File

@ -12,7 +12,7 @@ interface FeatureResultInfoPopoverCellProps {
const FeatureResultPopoverWrapper = styled('div')(({ theme }) => ({ const FeatureResultPopoverWrapper = styled('div')(({ theme }) => ({
alignItems: 'flex-end', alignItems: 'flex-end',
color: theme.palette.tertiary.main, color: theme.palette.divider,
})); }));
export const FeatureResultInfoPopoverCell = ({ export const FeatureResultInfoPopoverCell = ({
@ -48,7 +48,7 @@ export const FeatureResultInfoPopoverCell = ({
maxWidth: '100%', maxWidth: '100%',
height: 'auto', height: 'auto',
overflowY: 'auto', overflowY: 'auto',
backgroundColor: theme.palette.tertiary.light, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
}), }),
}} }}

View File

@ -45,7 +45,7 @@ export const FeatureStrategyItem = ({
<StrategyExecution <StrategyExecution
strategyResult={strategy} strategyResult={strategy}
input={input} input={input}
percentageFill={theme.palette.tertiary.light} percentageFill={theme.palette.background.elevation2}
/> />
</StrategyItemContainer> </StrategyItemContainer>
); );

View File

@ -13,7 +13,7 @@ const StyledWrapper = styled(Box)(({ theme }) => ({
width: '100%', width: '100%',
padding: theme.spacing(2, 3), padding: theme.spacing(2, 3),
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',

View File

@ -16,7 +16,7 @@ const StyledDivContainer = styled('div', {
width: '100%', width: '100%',
padding: theme.spacing(2, 3), padding: theme.spacing(2, 3),
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',

View File

@ -5,5 +5,5 @@ export const StyledBoxSummary = styled(Box)(({ theme }) => ({
height: 'auto', height: 'auto',
padding: theme.spacing(2, 3), padding: theme.spacing(2, 3),
borderRadius: theme.shape.borderRadiusMedium, borderRadius: theme.shape.borderRadiusMedium,
border: `1px solid ${theme.palette.dividerAlternative}`, border: `1px solid ${theme.palette.divider}`,
})); }));

View File

@ -1,7 +1,7 @@
import { Fragment, VFC } from 'react'; import { Fragment, VFC } from 'react';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator';
import { Chip, styled } from '@mui/material'; import { styled } from '@mui/material';
import { PlaygroundRequestSchema, PlaygroundStrategySchema } from 'openapi'; import { PlaygroundRequestSchema, PlaygroundStrategySchema } from 'openapi';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
import { ConstraintExecution } from './ConstraintExecution/ConstraintExecution'; import { ConstraintExecution } from './ConstraintExecution/ConstraintExecution';
@ -10,6 +10,7 @@ import { PlaygroundResultStrategyExecutionParameters } from './StrategyExecution
import { CustomStrategyParams } from './CustomStrategyParams/CustomStrategyParams'; import { CustomStrategyParams } from './CustomStrategyParams/CustomStrategyParams';
import { formattedStrategyNames } from 'utils/strategyNames'; import { formattedStrategyNames } from 'utils/strategyNames';
import { StyledBoxSummary } from './StrategyExecution.styles'; import { StyledBoxSummary } from './StrategyExecution.styles';
import { Badge } from 'component/common/Badge/Badge';
interface IStrategyExecutionProps { interface IStrategyExecutionProps {
strategyResult: PlaygroundStrategySchema; strategyResult: PlaygroundStrategySchema;
@ -60,14 +61,8 @@ export const StrategyExecution: VFC<IStrategyExecutionProps> = ({
), ),
name === 'default' && ( name === 'default' && (
<StyledBoxSummary sx={{ width: '100%' }}> <StyledBoxSummary sx={{ width: '100%' }}>
The standard strategy is{' '} The standard strategy is <Badge color="success">ON</Badge> for
<Chip all users.
variant="outlined"
size="small"
color="success"
label="ON"
/>{' '}
for all users.
</StyledBoxSummary> </StyledBoxSummary>
), ),
].filter(Boolean); ].filter(Boolean);

View File

@ -2,12 +2,13 @@ import {
parseParameterNumber, parseParameterNumber,
parseParameterStrings, parseParameterStrings,
} from 'utils/parseParameter'; } from 'utils/parseParameter';
import { Box, Chip } from '@mui/material'; import { Box } from '@mui/material';
import PercentageCircle from 'component/common/PercentageCircle/PercentageCircle'; import PercentageCircle from 'component/common/PercentageCircle/PercentageCircle';
import { PlaygroundParameterItem } from '../PlaygroundParameterItem/PlaygroundParameterItem'; import { PlaygroundParameterItem } from '../PlaygroundParameterItem/PlaygroundParameterItem';
import { StyledBoxSummary } from '../StrategyExecution.styles'; import { StyledBoxSummary } from '../StrategyExecution.styles';
import { PlaygroundConstraintSchema, PlaygroundRequestSchema } from 'openapi'; import { PlaygroundConstraintSchema, PlaygroundRequestSchema } from 'openapi';
import { getMappedParam } from '../helpers'; import { getMappedParam } from '../helpers';
import { Badge } from 'component/common/Badge/Badge';
export interface PlaygroundResultStrategyExecutionParametersProps { export interface PlaygroundResultStrategyExecutionParametersProps {
parameters: { [key: string]: string }; parameters: { [key: string]: string };
@ -41,12 +42,7 @@ export const PlaygroundResultStrategyExecutionParameters = ({
/> />
</Box> </Box>
<div> <div>
<Chip <Badge color="success">{percentage}%</Badge>{' '}
color="success"
variant="outlined"
size="small"
label={`${percentage}%`}
/>{' '}
of your base{' '} of your base{' '}
{constraints.length > 0 {constraints.length > 0
? 'who match constraints' ? 'who match constraints'

View File

@ -2,7 +2,7 @@ import { Box, styled } from '@mui/material';
export const ActionsContainer = styled(Box)(({ theme }) => ({ export const ActionsContainer = styled(Box)(({ theme }) => ({
width: '100%', width: '100%',
borderTop: `1px solid ${theme.palette.dividerAlternative}`, borderTop: `1px solid ${theme.palette.divider}`,
marginTop: 'auto', marginTop: 'auto',
paddingTop: theme.spacing(3), paddingTop: theme.spacing(3),
display: 'flex', display: 'flex',

View File

@ -29,7 +29,7 @@ const TimelineContainer = styled('div')(({ theme }) => ({
const TimelineHeader = styled('div')(({ theme }) => ({ const TimelineHeader = styled('div')(({ theme }) => ({
textTransform: 'uppercase', textTransform: 'uppercase',
fontSize: theme.fontSizes.smallBody, fontSize: theme.fontSizes.smallBody,
color: theme.palette.text.tertiaryContrast, color: theme.palette.primary.contrastText,
fontWeight: theme.typography.fontWeightBold, fontWeight: theme.typography.fontWeightBold,
paddingLeft: theme.spacing(2), paddingLeft: theme.spacing(2),
marginBottom: theme.spacing(4), marginBottom: theme.spacing(4),

View File

@ -24,7 +24,7 @@ const StyledTimelineDot = styled(TimelineDot, {
shouldForwardProp: prop => prop !== 'active', shouldForwardProp: prop => prop !== 'active',
})<{ active: boolean }>(({ theme, active }) => ({ })<{ active: boolean }>(({ theme, active }) => ({
color: active ? theme.palette.primary.main : theme.palette.neutral.border, color: active ? theme.palette.primary.main : theme.palette.neutral.border,
backgroundColor: active ? theme.palette.text.tertiaryContrast : 'initial', backgroundColor: active ? theme.palette.primary.contrastText : 'initial',
fontWeight: active ? theme.fontWeight.bold : theme.fontWeight.medium, fontWeight: active ? theme.fontWeight.bold : theme.fontWeight.medium,
borderColor: theme.palette.neutral.border, borderColor: theme.palette.neutral.border,
width: '40px', width: '40px',
@ -39,9 +39,7 @@ const StyledTimelineContent = styled(TimelineContent, {
shouldForwardProp: prop => prop !== 'active', shouldForwardProp: prop => prop !== 'active',
})<{ active: boolean }>(({ theme, active }) => ({ })<{ active: boolean }>(({ theme, active }) => ({
marginBottom: theme.spacing(6), marginBottom: theme.spacing(6),
color: active color: active ? theme.palette.common.white : theme.palette.neutral.border,
? theme.palette.text.tertiaryContrast
: theme.palette.neutral.border,
marginTop: theme.spacing(2), marginTop: theme.spacing(2),
})); }));

View File

@ -6,7 +6,7 @@ export const PulsingAvatar = styled(Avatar, {
transition: 'background-color 0.5s ease', transition: 'background-color 0.5s ease',
backgroundColor: active backgroundColor: active
? theme.palette.primary.main ? theme.palette.primary.main
: theme.palette.tertiary.main, : theme.palette.divider,
'@keyframes pulse': { '@keyframes pulse': {
'0%': { '0%': {
boxShadow: `0 0 0 0px ${alpha(theme.palette.primary.main, 0.7)}`, boxShadow: `0 0 0 0px ${alpha(theme.palette.primary.main, 0.7)}`,

View File

@ -2,7 +2,7 @@ import React, { FC } from 'react';
import { Box, styled, Typography } from '@mui/material'; import { Box, styled, Typography } from '@mui/material';
const ImportExplanationContainer = styled(Box)(({ theme }) => ({ const ImportExplanationContainer = styled(Box)(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
padding: theme.spacing(3), padding: theme.spacing(3),
})); }));

View File

@ -6,7 +6,7 @@ import { IMPORT_ENVIRONMENT } from 'utils/testIds';
import useProject from 'hooks/api/getters/useProject/useProject'; import useProject from 'hooks/api/getters/useProject/useProject';
const ImportOptionsContainer = styled(Box)(({ theme }) => ({ const ImportOptionsContainer = styled(Box)(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
padding: theme.spacing(3), padding: theme.spacing(3),
})); }));

View File

@ -15,7 +15,7 @@ import { CREATE_FEATURE } from 'component/providers/AccessProvider/permissions';
import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
const ImportInfoContainer = styled(Box)(({ theme }) => ({ const ImportInfoContainer = styled(Box)(({ theme }) => ({
backgroundColor: theme.palette.secondaryContainer, backgroundColor: theme.palette.background.elevation2,
borderRadius: theme.shape.borderRadiusLarge, borderRadius: theme.shape.borderRadiusLarge,
padding: theme.spacing(3), padding: theme.spacing(3),
})); }));

Some files were not shown because too many files have changed in this diff Show More