diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx index 6564441ad1..6f04f77e48 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx @@ -8,7 +8,7 @@ const StyledInfoBox = styled('aside')(({ theme }) => ({ padding: theme.spacing(4), height: '100%', borderRadius: theme.shape.borderRadiusLarge, - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, })); const StyledTitle = styled(Typography)(({ theme }) => ({ @@ -26,7 +26,7 @@ const StyledInfoLabel = styled(Typography)(({ theme }) => ({ const StyledDivider = styled(Divider)(({ theme }) => ({ margin: `${theme.spacing(2.5)} 0`, - borderColor: theme.palette.dividerAlternative, + borderColor: theme.palette.divider, })); interface IBillingInformationProps { instanceStatus: IInstanceStatus; diff --git a/frontend/src/component/admin/groups/GroupForm/GroupForm.tsx b/frontend/src/component/admin/groups/GroupForm/GroupForm.tsx index b29b891a26..ea7898431c 100644 --- a/frontend/src/component/admin/groups/GroupForm/GroupForm.tsx +++ b/frontend/src/component/admin/groups/GroupForm/GroupForm.tsx @@ -53,7 +53,7 @@ const StyledDescriptionBlock = styled('div')(({ theme }) => ({ maxWidth: theme.spacing(60), padding: theme.spacing(3), backgroundColor: theme.palette.neutral.light, - color: theme.palette.grey[900], + color: theme.palette.text.primary, fontSize: theme.fontSizes.smallBody, borderRadius: theme.shape.borderRadiusMedium, marginBottom: theme.spacing(2), diff --git a/frontend/src/component/admin/groups/GroupsList/GroupCard/GroupCard.tsx b/frontend/src/component/admin/groups/GroupsList/GroupCard/GroupCard.tsx index be82eb0baf..9e4d741a98 100644 --- a/frontend/src/component/admin/groups/GroupsList/GroupCard/GroupCard.tsx +++ b/frontend/src/component/admin/groups/GroupsList/GroupCard/GroupCard.tsx @@ -15,7 +15,7 @@ const StyledLink = styled(Link)(({ theme }) => ({ const StyledGroupCard = styled('aside')(({ theme }) => ({ padding: theme.spacing(2.5), height: '100%', - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusLarge, boxShadow: theme.boxShadows.card, display: 'flex', diff --git a/frontend/src/component/admin/maintenance/MaintenanceToggle.tsx b/frontend/src/component/admin/maintenance/MaintenanceToggle.tsx index aac1f7a6af..dfa156f0ea 100644 --- a/frontend/src/component/admin/maintenance/MaintenanceToggle.tsx +++ b/frontend/src/component/admin/maintenance/MaintenanceToggle.tsx @@ -15,7 +15,7 @@ const StyledContainer = styled('div')(({ theme }) => ({ display: 'flex', flexDirection: 'column', padding: theme.spacing(3), - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusLarge, })); diff --git a/frontend/src/component/admin/network/NetworkTraffic/NetworkTraffic.tsx b/frontend/src/component/admin/network/NetworkTraffic/NetworkTraffic.tsx index a641c2ecb4..5bcc720019 100644 --- a/frontend/src/component/admin/network/NetworkTraffic/NetworkTraffic.tsx +++ b/frontend/src/component/admin/network/NetworkTraffic/NetworkTraffic.tsx @@ -62,7 +62,7 @@ const createInstanceChartOptions = ( tooltip: { backgroundColor: theme.palette.background.paper, bodyColor: theme.palette.text.primary, - titleColor: theme.palette.grey[700], + titleColor: theme.palette.action.active, borderColor: theme.palette.primary.main, borderWidth: 1, padding: 10, diff --git a/frontend/src/component/admin/serviceAccounts/ServiceAccountsTable/ServiceAccountModal/ServiceAccountModal.tsx b/frontend/src/component/admin/serviceAccounts/ServiceAccountsTable/ServiceAccountModal/ServiceAccountModal.tsx index 79c225d727..bc54575903 100644 --- a/frontend/src/component/admin/serviceAccounts/ServiceAccountsTable/ServiceAccountModal/ServiceAccountModal.tsx +++ b/frontend/src/component/admin/serviceAccounts/ServiceAccountsTable/ServiceAccountModal/ServiceAccountModal.tsx @@ -71,7 +71,7 @@ const StyledRoleRadio = styled(Radio)(({ theme }) => ({ const StyledSecondaryContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(3), - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, borderRadius: theme.shape.borderRadiusMedium, marginTop: theme.spacing(4), marginBottom: theme.spacing(2), diff --git a/frontend/src/component/admin/users/InviteLink/InviteLink.tsx b/frontend/src/component/admin/users/InviteLink/InviteLink.tsx index f918ec6b41..6425f86aa1 100644 --- a/frontend/src/component/admin/users/InviteLink/InviteLink.tsx +++ b/frontend/src/component/admin/users/InviteLink/InviteLink.tsx @@ -174,7 +174,7 @@ export const InviteLink: VFC = () => { borderRadius: theme => `${theme.shape.borderRadiusMedium}px`, backgroundColor: theme => - theme.palette.secondaryContainer, + theme.palette.background.elevation2, }} > diff --git a/frontend/src/component/admin/users/InviteLinkBar/InviteLinkBar.tsx b/frontend/src/component/admin/users/InviteLinkBar/InviteLinkBar.tsx index bd672e2edc..0ed961fba2 100644 --- a/frontend/src/component/admin/users/InviteLinkBar/InviteLinkBar.tsx +++ b/frontend/src/component/admin/users/InviteLinkBar/InviteLinkBar.tsx @@ -57,7 +57,7 @@ export const InviteLinkBar: VFC = () => { return ( { return ( theme.palette.secondaryContainer, + backgroundColor: theme => theme.palette.background.elevation2, py: 4, px: 4, borderRadius: theme => `${theme.shape.borderRadius}px`, diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.tsx index dd03080771..cae9773d62 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.tsx @@ -48,11 +48,11 @@ const StyledSingleChangeBox = styled(Box, { borderColor: $hasConflict || $isInConflictFeature ? theme.palette.warning.border - : theme.palette.dividerAlternative, + : theme.palette.divider, borderTopColor: ($hasConflict || $isAfterWarning) && !$isInConflictFeature ? theme.palette.warning.border - : theme.palette.dividerAlternative, + : theme.palette.divider, }) ); diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx index acb3df1173..22c824769d 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx @@ -35,7 +35,7 @@ export const FeatureToggleChanges: FC = ({ borderColor: theme => conflict ? theme.palette.warning.border - : theme.palette.tertiary.main, + : theme.palette.divider, borderBottom: 'none', overflow: 'hidden', })} diff --git a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestComments/ChangeRequestComment.tsx b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestComments/ChangeRequestComment.tsx index 83f118ea7c..fb202cbf36 100644 --- a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestComments/ChangeRequestComment.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestComments/ChangeRequestComment.tsx @@ -20,7 +20,7 @@ const CommentPaper = styled(Paper)(({ theme }) => ({ const CommentHeader = styled(Box)(({ theme }) => ({ display: 'flex', borderBottom: '1px solid', - borderColor: theme.palette.dividerAlternative, + borderColor: theme.palette.divider, paddingBottom: theme.spacing(1.5), })); diff --git a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestHeader/ChangeRequestHeader.styles.tsx b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestHeader/ChangeRequestHeader.styles.tsx index 1ade47cc4d..82ef69ec96 100644 --- a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestHeader/ChangeRequestHeader.styles.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestHeader/ChangeRequestHeader.styles.tsx @@ -26,7 +26,7 @@ export const StyledHeader = styled(Typography)(({ theme }) => ({ export const StyledCard = styled(Card)(({ theme }) => ({ padding: theme.spacing(0.75, 1.5), - backgroundColor: theme.palette.tertiary.light, + backgroundColor: theme.palette.background.elevation2, })); export const StyledAvatar = styled(Avatar)(({ theme }) => ({ diff --git a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestReviewStatus/ChangeRequestReviewStatus.tsx b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestReviewStatus/ChangeRequestReviewStatus.tsx index 609ba28c30..365ca7d4b8 100644 --- a/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestReviewStatus/ChangeRequestReviewStatus.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestOverview/ChangeRequestReviewStatus/ChangeRequestReviewStatus.tsx @@ -29,26 +29,26 @@ const resolveBorder = (state: ChangeRequestState, theme: Theme) => { 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) => { if (state === 'Approved') { return { bgColor: theme.palette.success.main!, - svgColor: theme.palette.tertiary.background, + svgColor: theme.palette.background.paper, }; } if (state === 'Applied') { return { bgColor: theme.palette.primary.main!, - svgColor: theme.palette.tertiary.background, + svgColor: theme.palette.background.paper, }; } return { - bgColor: theme.palette.tableHeaderBackground, + bgColor: theme.palette.background.elevation2, svgColor: theme.palette.neutral.main!, }; }; @@ -117,8 +117,8 @@ const Approved = () => { - - Changed approved + + Changes approved One approving review from requested approvers @@ -131,7 +131,7 @@ const Approved = () => { - + Changes are ready to be applied @@ -152,7 +152,7 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => { - + Review required @@ -166,7 +166,7 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => { - + Apply changes is blocked diff --git a/frontend/src/component/changeRequest/ChangeRequestSidebar/ChangeRequestSidebar.tsx b/frontend/src/component/changeRequest/ChangeRequestSidebar/ChangeRequestSidebar.tsx index 02f5ec6496..06d61283a9 100644 --- a/frontend/src/component/changeRequest/ChangeRequestSidebar/ChangeRequestSidebar.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestSidebar/ChangeRequestSidebar.tsx @@ -59,7 +59,7 @@ export const Separator = () => ( sx={{ marginLeft: 1.5, marginRight: 1.5, - color: 'dividerAlternative', + color: 'divider', }} > | diff --git a/frontend/src/component/changeRequest/ChangeRequestSidebar/EnvironmentChangeRequest/EnvironmentChangeRequest.tsx b/frontend/src/component/changeRequest/ChangeRequestSidebar/EnvironmentChangeRequest/EnvironmentChangeRequest.tsx index 3de3bf91f6..9cf8801d96 100644 --- a/frontend/src/component/changeRequest/ChangeRequestSidebar/EnvironmentChangeRequest/EnvironmentChangeRequest.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestSidebar/EnvironmentChangeRequest/EnvironmentChangeRequest.tsx @@ -38,7 +38,7 @@ export const EnvironmentChangeRequest: FC<{ padding: 3, border: '2px solid', mb: 5, - borderColor: theme => theme.palette.secondaryContainer, + borderColor: theme => theme.palette.divider, borderRadius: theme => `${theme.shape.borderRadiusLarge}px`, }} > diff --git a/frontend/src/component/changeRequest/ChangeRequestSidebar/ReviewChangesHeader/ReviewChangesHeader.tsx b/frontend/src/component/changeRequest/ChangeRequestSidebar/ReviewChangesHeader/ReviewChangesHeader.tsx index 6795b49b3a..12491b8906 100644 --- a/frontend/src/component/changeRequest/ChangeRequestSidebar/ReviewChangesHeader/ReviewChangesHeader.tsx +++ b/frontend/src/component/changeRequest/ChangeRequestSidebar/ReviewChangesHeader/ReviewChangesHeader.tsx @@ -6,7 +6,7 @@ import { PageHeader } from '../../../common/PageHeader/PageHeader'; const StyledHelpOutline = styled(HelpOutline)(({ theme }) => ({ fontSize: theme.fontSizes.mainHeader, marginLeft: '0.3rem', - color: theme.palette.grey[700], + color: theme.palette.action.active, })); const StyledHeaderHint = styled('div')(({ theme }) => ({ diff --git a/frontend/src/component/common/AutocompleteBox/AutocompleteBox.styles.ts b/frontend/src/component/common/AutocompleteBox/AutocompleteBox.styles.ts index 2d8e20fa28..3d4eaaacff 100644 --- a/frontend/src/component/common/AutocompleteBox/AutocompleteBox.styles.ts +++ b/frontend/src/component/common/AutocompleteBox/AutocompleteBox.styles.ts @@ -8,7 +8,7 @@ export const useStyles = makeStyles()(theme => ({ borderTopRightRadius: 50, borderBottomRightRadius: 50, '& fieldset': { - borderColor: theme.palette.grey[300], + borderColor: theme.palette.divider, borderLeftColor: 'transparent', }, '&.Mui-focused .MuiOutlinedInput-notchedOutline': { diff --git a/frontend/src/component/common/AutocompleteBox/AutocompleteBox.tsx b/frontend/src/component/common/AutocompleteBox/AutocompleteBox.tsx index a3a4056e98..81f38af96a 100644 --- a/frontend/src/component/common/AutocompleteBox/AutocompleteBox.tsx +++ b/frontend/src/component/common/AutocompleteBox/AutocompleteBox.tsx @@ -31,7 +31,7 @@ const StyledIcon = styled('div', { })<{ $disabled: boolean }>(({ theme, $disabled }) => ({ background: $disabled ? theme.palette.primary.light - : theme.palette.featureSegmentSearchBackground, + : theme.palette.primary.main, height: '48px', width: '48px', display: 'flex', @@ -40,7 +40,7 @@ const StyledIcon = styled('div', { paddingLeft: 6, borderTopLeftRadius: '40px', borderBottomLeftRadius: '40px', - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, })); const StyledAutocomplete = styled(Autocomplete)({ diff --git a/frontend/src/component/common/CheckmarkBadge/CheckMarkBadge.tsx b/frontend/src/component/common/CheckmarkBadge/CheckMarkBadge.tsx index 458fc9fa39..45717db0ca 100644 --- a/frontend/src/component/common/CheckmarkBadge/CheckMarkBadge.tsx +++ b/frontend/src/component/common/CheckmarkBadge/CheckMarkBadge.tsx @@ -7,7 +7,7 @@ interface ICheckMarkBadgeProps { } const StyledBatch = styled('div')(({ theme }) => ({ - backgroundColor: theme.palette.checkmarkBadge, + backgroundColor: theme.palette.primary.main, width: '75px', height: '75px', borderRadius: '50px', @@ -21,12 +21,12 @@ const StyledBatch = styled('div')(({ theme }) => ({ })); const StyledClose = styled(Close)(({ theme }) => ({ - color: theme.palette.tertiary.background, + color: theme.palette.background.paper, width: '35px', height: '35px', })); const StyledCheck = styled(Check)(({ theme }) => ({ - color: theme.palette.tertiary.background, + color: theme.palette.background.paper, width: '35px', height: '35px', })); diff --git a/frontend/src/component/common/Codebox/Codebox.tsx b/frontend/src/component/common/Codebox/Codebox.tsx index f566d50235..51742d7fa1 100644 --- a/frontend/src/component/common/Codebox/Codebox.tsx +++ b/frontend/src/component/common/Codebox/Codebox.tsx @@ -17,7 +17,7 @@ const StyledCode = styled('pre')(({ theme }) => ({ margin: 0, wordBreak: 'break-all', whiteSpace: 'pre-wrap', - color: theme.palette.formSidebarTextColor, + color: theme.palette.common.white, fontSize: theme.fontSizes.smallBody, })); diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEdit.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEdit.tsx index 60c738da5d..67aac897a9 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEdit.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEdit.tsx @@ -50,9 +50,9 @@ const resolveContextDefinition = ( const StyledForm = styled('div')({ padding: 0, margin: 0, width: '100%' }); const StyledAccordion = styled(Accordion)(({ theme }) => ({ - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusMedium, - backgroundColor: theme.palette.constraintAccordion.editBackground, + backgroundColor: theme.palette.background.elevation1, boxShadow: 'none', margin: 0, '& .expanded': { diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/ConstraintFormHeader/ConstraintFormHeader.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/ConstraintFormHeader/ConstraintFormHeader.tsx index d970c25f88..9034ac8edc 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/ConstraintFormHeader/ConstraintFormHeader.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/ConstraintFormHeader/ConstraintFormHeader.tsx @@ -3,7 +3,7 @@ import { styled } from '@mui/material'; const StyledHeader = styled('h3')(({ theme }) => ({ fontSize: theme.fontSizes.bodySize, - fontWeight: theme.typography.fontWeightMedium, + fontWeight: theme.typography.fontWeightRegular, marginTop: theme.spacing(2), marginBottom: theme.spacing(0.5), })); diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts index 890e09c7b2..74e49c4475 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts @@ -12,6 +12,6 @@ export const useStyles = makeStyles()(theme => ({ description: { lineHeight: 1.33, fontSize: theme.fontSizes.smallerBody, - color: theme.palette.grey[700], + color: theme.palette.action.active, }, })); diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/StyledToggleButton/StyledToggleButton.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/StyledToggleButton/StyledToggleButton.tsx index e4cef7dae5..0a0003eaa3 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/StyledToggleButton/StyledToggleButton.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/StyledToggleButton/StyledToggleButton.tsx @@ -6,12 +6,12 @@ export const StyledToggleButtonOff = styled(IconButton)(({ theme }) => ({ minWidth: '28px', maxWidth: '28px', height: 'auto', - backgroundColor: theme.palette.tertiary.background, + backgroundColor: theme.palette.background.paper, borderRadius: theme.shape.borderRadius, padding: '0 1px 0', marginRight: '1rem', '&:hover': { - background: theme.palette.tertiary.contrast[300], + background: theme.palette.background.application, }, [theme.breakpoints.between(1101, 1365)]: { marginRight: '0.5rem', diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionList/ConstraintAccordionList.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionList/ConstraintAccordionList.tsx index 85f21e51a5..b4b30e4aed 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionList/ConstraintAccordionList.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionList/ConstraintAccordionList.tsx @@ -46,7 +46,7 @@ const StyledHelpWrapper = styled(Tooltip)(({ theme }) => ({ })); const StyledHelp = styled(HelpOutline)(({ theme }) => ({ - fill: theme.palette.tertiary.dark, + fill: theme.palette.action.active, [theme.breakpoints.down(860)]: { display: 'none', }, @@ -60,7 +60,7 @@ const StyledConstraintLabel = styled('p')(({ theme }) => ({ const StyledAddCustomLabel = styled('div')(({ theme }) => ({ marginTop: theme.spacing(1), marginBottom: theme.spacing(1), - color: theme.palette.text.secondary, + color: theme.palette.text.primary, display: 'flex', })); diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx index 15718cf74a..1069863fed 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx @@ -27,9 +27,9 @@ interface IConstraintAccordionViewProps { } const StyledAccordion = styled(Accordion)(({ theme }) => ({ - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusMedium, - backgroundColor: theme.palette.constraintAccordion.background, + backgroundColor: theme.palette.background.paper, boxShadow: 'none', margin: 0, diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionViewHeader/StyledIconWrapper.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionViewHeader/StyledIconWrapper.tsx index f12acf3f2f..fa420e3244 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionViewHeader/StyledIconWrapper.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionViewHeader/StyledIconWrapper.tsx @@ -5,7 +5,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit export const StyledIconWrapperBase = styled('div')<{ prefix?: boolean; }>(({ theme }) => ({ - backgroundColor: theme.palette.grey[200], + backgroundColor: theme.palette.background.elevation2, width: 24, display: 'flex', alignItems: 'center', diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintOperator/ConstraintOperator.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintOperator/ConstraintOperator.tsx index dc5a426813..b7bd3fff05 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintOperator/ConstraintOperator.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintOperator/ConstraintOperator.tsx @@ -11,7 +11,7 @@ interface IConstraintOperatorProps { const StyledContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(0.5, 1.5), borderRadius: theme.shape.borderRadius, - backgroundColor: theme.palette.constraintAccordion.operatorBackground, + backgroundColor: theme.palette.background.elevation2, lineHeight: 1.25, })); diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintOperatorSelect.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintOperatorSelect.tsx index c32f4bf8cb..ba3d1bf9a9 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintOperatorSelect.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintOperatorSelect.tsx @@ -64,7 +64,7 @@ const StyledMenuItem = styled(MenuItem, { left: 0, right: 0, borderTop: '1px solid', - borderTopColor: theme.palette.tertiary.contrast, + borderTopColor: theme.palette.divider, }, } : {} diff --git a/frontend/src/component/common/Dialogue/Dialogue.tsx b/frontend/src/component/common/Dialogue/Dialogue.tsx index 751fe7179b..b05fa35069 100644 --- a/frontend/src/component/common/Dialogue/Dialogue.tsx +++ b/frontend/src/component/common/Dialogue/Dialogue.tsx @@ -21,7 +21,7 @@ const StyledDialog = styled(Dialog)(({ theme, maxWidth }) => ({ const StyledDialogTitle = styled(DialogTitle)(({ theme }) => ({ backgroundColor: theme.palette.primary.main, - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, padding: theme.spacing(3.5, 6), fontWeight: theme.fontWeight.medium, })); diff --git a/frontend/src/component/common/FeatureStatusChip/FeatureStatusChip.tsx b/frontend/src/component/common/FeatureStatusChip/FeatureStatusChip.tsx index bc74f645d6..50d09785a2 100644 --- a/frontend/src/component/common/FeatureStatusChip/FeatureStatusChip.tsx +++ b/frontend/src/component/common/FeatureStatusChip/FeatureStatusChip.tsx @@ -1,16 +1,10 @@ -import { Chip, styled } from '@mui/material'; +import { Badge } from 'component/common/Badge/Badge'; interface IStatusChip { stale: 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 = ({ stale, showActive = true, @@ -26,12 +20,9 @@ export const FeatureStatusChip = ({ return (
- + + {value} +
); }; diff --git a/frontend/src/component/common/FormTemplate/FormTemplate.tsx b/frontend/src/component/common/FormTemplate/FormTemplate.tsx index 1235b1c354..d1b138333d 100644 --- a/frontend/src/component/common/FormTemplate/FormTemplate.tsx +++ b/frontend/src/component/common/FormTemplate/FormTemplate.tsx @@ -46,7 +46,7 @@ const StyledContainer = styled('section', { const StyledRelativeDiv = styled('div')(({ theme }) => relative); const StyledFormContent = styled('div')(({ theme }) => ({ - backgroundColor: theme.palette.formBackground, + backgroundColor: theme.palette.background.paper, display: 'flex', flexDirection: 'column', padding: theme.spacing(6), @@ -73,7 +73,7 @@ const StyledSidebarDivider = styled(Divider)(({ theme }) => ({ })); const StyledSubtitle = styled('h2')(({ theme }) => ({ - color: theme.palette.formSidebarTextColor, + color: theme.palette.common.white, marginBottom: theme.spacing(2), display: 'flex', justifyContent: 'space-between', @@ -83,7 +83,7 @@ const StyledSubtitle = styled('h2')(({ theme }) => ({ })); const StyledIcon = styled(FileCopy)(({ theme }) => ({ - fill: theme.palette.text.tertiaryContrast, + fill: theme.palette.primary.contrastText, })); const StyledMobileGuidanceContainer = styled('div')(() => ({ @@ -105,11 +105,11 @@ const StyledMobileGuidanceButton = styled(IconButton)(() => ({ })); const StyledInfoIcon = styled(Info)(({ theme }) => ({ - fill: theme.palette.text.tertiaryContrast, + fill: theme.palette.primary.contrastText, })); const StyledSidebar = styled('aside')(({ theme }) => ({ - backgroundColor: theme.palette.formSidebar, + backgroundColor: theme.palette.background.sidebar, padding: theme.spacing(4), flexGrow: 0, flexShrink: 0, @@ -124,7 +124,7 @@ const StyledSidebar = styled('aside')(({ theme }) => ({ })); const StyledDescription = styled('p')(({ theme }) => ({ - color: theme.palette.formSidebarTextColor, + color: theme.palette.common.white, zIndex: 1, position: 'relative', })); @@ -137,11 +137,11 @@ const StyledLinkContainer = styled('div')(({ theme }) => ({ const StyledLinkIcon = styled(MenuBookIcon)(({ theme }) => ({ marginRight: theme.spacing(1), - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, })); const StyledDocumentationLink = styled('a')(({ theme }) => ({ - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, display: 'block', '&:hover': { textDecoration: 'none', diff --git a/frontend/src/component/common/GuidanceIndicator/GuidanceIndicator.tsx b/frontend/src/component/common/GuidanceIndicator/GuidanceIndicator.tsx index 167fdef936..6c20b1b9b5 100644 --- a/frontend/src/component/common/GuidanceIndicator/GuidanceIndicator.tsx +++ b/frontend/src/component/common/GuidanceIndicator/GuidanceIndicator.tsx @@ -5,7 +5,7 @@ const StyledIndicator = styled('div')(({ style, theme }) => ({ width: '25px', height: '25px', borderRadius: '50%', - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, display: 'flex', alignItems: 'center', justifyContent: 'center', @@ -29,7 +29,7 @@ export const GuidanceIndicator: FC = ({ const defaults = { backgroundColor: theme.palette.primary.main }; if (type === 'secondary') { - defaults.backgroundColor = theme.palette.tertiary.dark; + defaults.backgroundColor = theme.palette.text.disabled; } return ( diff --git a/frontend/src/component/common/HtmlTooltip/HtmlTooltip.tsx b/frontend/src/component/common/HtmlTooltip/HtmlTooltip.tsx index e85a07b233..e826ff1acd 100644 --- a/frontend/src/component/common/HtmlTooltip/HtmlTooltip.tsx +++ b/frontend/src/component/common/HtmlTooltip/HtmlTooltip.tsx @@ -46,13 +46,13 @@ const StyledHtmlTooltip = styled( color: theme.palette.text.primary, fontWeight: theme.fontWeight.medium, maxWidth: 'inherit', - border: `1px solid ${theme.palette.lightBorder}`, + border: `1px solid ${theme.palette.divider}`, maxHeight, fontSize, }, [`& .${tooltipClasses.arrow}`]: { '&:before': { - border: `1px solid ${theme.palette.lightBorder}`, + border: `1px solid ${theme.palette.divider}`, }, color: theme.palette.background.paper, }, diff --git a/frontend/src/component/common/NotFound/NotFound.tsx b/frontend/src/component/common/NotFound/NotFound.tsx index e02cb0c4ee..663099594d 100644 --- a/frontend/src/component/common/NotFound/NotFound.tsx +++ b/frontend/src/component/common/NotFound/NotFound.tsx @@ -12,7 +12,7 @@ const StyledContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(4), position: 'fixed', inset: 0, - backgroundColor: theme.palette.text.tertiaryContrast, + backgroundColor: theme.palette.primary.contrastText, width: '100%', })); diff --git a/frontend/src/component/common/Notifications/Notification.tsx b/frontend/src/component/common/Notifications/Notification.tsx index 06db8c5d68..626e3d5aae 100644 --- a/frontend/src/component/common/Notifications/Notification.tsx +++ b/frontend/src/component/common/Notifications/Notification.tsx @@ -38,7 +38,7 @@ const StyledListItemButton = styled(ListItemButton)(({ theme }) => ({ cursor: 'pointer', margin: theme.spacing(2, 0), '&:not(:last-child)': { - borderBottom: `2px solid ${theme.palette.tertiary.contrast}`, + borderBottom: `2px solid ${theme.palette.divider}`, }, width: '100%', })); diff --git a/frontend/src/component/common/PageHeader/PageHeader.tsx b/frontend/src/component/common/PageHeader/PageHeader.tsx index e94777e43d..17555e5272 100644 --- a/frontend/src/component/common/PageHeader/PageHeader.tsx +++ b/frontend/src/component/common/PageHeader/PageHeader.tsx @@ -15,7 +15,7 @@ import { usePageTitle } from 'hooks/usePageTitle'; const StyledDivider = styled(Divider)(({ theme }) => ({ height: '100%', - borderColor: theme.palette.dividerAlternative, + borderColor: theme.palette.divider, width: '1px', display: 'inline-block', marginLeft: theme.spacing(2), diff --git a/frontend/src/component/common/PercentageCircle/PercentageCircle.tsx b/frontend/src/component/common/PercentageCircle/PercentageCircle.tsx index 60b7ea86bf..e7a892a8e5 100644 --- a/frontend/src/component/common/PercentageCircle/PercentageCircle.tsx +++ b/frontend/src/component/common/PercentageCircle/PercentageCircle.tsx @@ -18,7 +18,7 @@ const PercentageCircle = ({ transform: 'rotate(-90deg)', height: 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, diff --git a/frontend/src/component/common/PremiumFeature/PremiumFeature.tsx b/frontend/src/component/common/PremiumFeature/PremiumFeature.tsx index 9a6fcca544..f356b47f0d 100644 --- a/frontend/src/component/common/PremiumFeature/PremiumFeature.tsx +++ b/frontend/src/component/common/PremiumFeature/PremiumFeature.tsx @@ -10,7 +10,9 @@ const PremiumFeatureWrapper = styled(Box, { flexDirection: 'column', alignItems: tooltip ? 'start' : 'center', textAlign: tooltip ? 'left' : 'center', - backgroundColor: tooltip ? 'transparent' : theme.palette.secondaryContainer, + backgroundColor: tooltip + ? 'transparent' + : theme.palette.background.elevation2, borderRadius: tooltip ? 0 : theme.shape.borderRadiusLarge, padding: tooltip ? theme.spacing(1, 0.5) : theme.spacing(7.5, 1), })); diff --git a/frontend/src/component/common/Search/Search.tsx b/frontend/src/component/common/Search/Search.tsx index 22b11644d4..78bb656a87 100644 --- a/frontend/src/component/common/Search/Search.tsx +++ b/frontend/src/component/common/Search/Search.tsx @@ -101,7 +101,7 @@ export const Search = ({ theme.palette.inactiveIcon, + color: theme => theme.palette.action.disabled, }} /> ({ })); const StyledCode = styled('span')(({ theme }) => ({ - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, color: theme.palette.text.primary, padding: theme.spacing(0, 0.5), borderRadius: theme.spacing(0.5), diff --git a/frontend/src/component/common/Search/SearchSuggestions/SearchInstructions/SearchInstructions.tsx b/frontend/src/component/common/Search/SearchSuggestions/SearchInstructions/SearchInstructions.tsx index bfaf3a557e..145d84aded 100644 --- a/frontend/src/component/common/Search/SearchSuggestions/SearchInstructions/SearchInstructions.tsx +++ b/frontend/src/component/common/Search/SearchSuggestions/SearchInstructions/SearchInstructions.tsx @@ -9,7 +9,7 @@ const StyledHeader = styled('span')(({ theme }) => ({ })); const StyledCode = styled('span')(({ theme }) => ({ - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, color: theme.palette.text.primary, padding: theme.spacing(0, 0.5), borderRadius: theme.spacing(0.5), diff --git a/frontend/src/component/common/Search/SearchSuggestions/SearchSuggestions.tsx b/frontend/src/component/common/Search/SearchSuggestions/SearchSuggestions.tsx index 3ba355c9df..6f71da89af 100644 --- a/frontend/src/component/common/Search/SearchSuggestions/SearchSuggestions.tsx +++ b/frontend/src/component/common/Search/SearchSuggestions/SearchSuggestions.tsx @@ -38,12 +38,12 @@ const StyledFilterList = styled(FilterList)(({ theme }) => ({ })); const StyledDivider = styled(Divider)(({ theme }) => ({ - border: `1px dashed ${theme.palette.dividerAlternative}`, + border: `1px dashed ${theme.palette.divider}`, margin: theme.spacing(1.5, 0), })); const StyledCode = styled('span')(({ theme }) => ({ - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, color: theme.palette.text.primary, padding: theme.spacing(0, 0.5), borderRadius: theme.spacing(0.5), diff --git a/frontend/src/component/common/SegmentItem/SegmentItem.tsx b/frontend/src/component/common/SegmentItem/SegmentItem.tsx index a97bdd9824..2e7750cea4 100644 --- a/frontend/src/component/common/SegmentItem/SegmentItem.tsx +++ b/frontend/src/component/common/SegmentItem/SegmentItem.tsx @@ -21,7 +21,7 @@ interface ISegmentItemProps { } const StyledAccordion = styled(Accordion)(({ theme }) => ({ - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusMedium, backgroundColor: theme.palette.background.paper, boxShadow: 'none', diff --git a/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx b/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx index dd88d915d9..34433643fb 100644 --- a/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx +++ b/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx @@ -99,7 +99,7 @@ export const StrategyItemContainer: FC = ({ /> theme.palette.inactiveIcon, + fill: theme => theme.palette.action.disabled, }} /> ({ padding: theme.spacing(0.75, 1), color: theme.palette.text.primary, fontSize: theme.fontSizes.smallerBody, - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, borderRadius: theme.shape.borderRadius, position: 'absolute', zIndex: theme.zIndex.fab, @@ -23,8 +23,7 @@ const StyledCenteredContent = styled(StyledContent)(({ theme }) => ({ top: '50%', left: '50%', transform: 'translate(-50%, -50%)', - backgroundColor: theme.palette.activityIndicators.primary, - border: `1px solid ${theme.palette.primary.border}`, + backgroundColor: theme.palette.seen.primary, borderRadius: theme.shape.borderRadiusLarge, padding: theme.spacing(0.75, 1.5), })); diff --git a/frontend/src/component/common/TabNav/TabNav/TabNav.tsx b/frontend/src/component/common/TabNav/TabNav/TabNav.tsx index 7a53636039..dbea1fee9c 100644 --- a/frontend/src/component/common/TabNav/TabNav/TabNav.tsx +++ b/frontend/src/component/common/TabNav/TabNav/TabNav.tsx @@ -51,7 +51,7 @@ export const TabNav = ({ sx={{ backgroundColor: theme => theme.palette.background.paper, borderBottom: '1px solid', - borderBottomColor: theme => theme.palette.grey[300], + borderBottomColor: theme => theme.palette.divider, borderRadius: 0, }} > diff --git a/frontend/src/component/common/Table/SortableTableHeader/CellSortable/CellSortable.styles.ts b/frontend/src/component/common/Table/SortableTableHeader/CellSortable/CellSortable.styles.ts index aecf0a19e5..6ccd08f755 100644 --- a/frontend/src/component/common/Table/SortableTableHeader/CellSortable/CellSortable.styles.ts +++ b/frontend/src/component/common/Table/SortableTableHeader/CellSortable/CellSortable.styles.ts @@ -22,7 +22,7 @@ export const StyledTableCell = styled(TableCell, { ...(isSortable && { padding: 0, '&:hover, &:focus': { - backgroundColor: theme.palette.tableHeaderHover, + backgroundColor: theme.palette.table.headerHover, '& svg': { color: 'inherit', }, diff --git a/frontend/src/component/common/Table/SortableTableHeader/CellSortable/SortArrow/SortArrow.tsx b/frontend/src/component/common/Table/SortableTableHeader/CellSortable/SortArrow/SortArrow.tsx index 05448f5c1c..8061a3f214 100644 --- a/frontend/src/component/common/Table/SortableTableHeader/CellSortable/SortArrow/SortArrow.tsx +++ b/frontend/src/component/common/Table/SortableTableHeader/CellSortable/SortArrow/SortArrow.tsx @@ -36,7 +36,7 @@ export const SortArrow: VFC = ({ ({ ...iconStyle(theme), - color: theme.palette.tableHeaderColor, + color: theme.palette.table.headerColor, })} className={className} fontSize="inherit" @@ -46,7 +46,7 @@ export const SortArrow: VFC = ({ ({ ...iconStyle(theme), - color: theme.palette.tableHeaderColor, + color: theme.palette.table.headerColor, })} className={className} fontSize="inherit" diff --git a/frontend/src/component/common/Table/SortableTableHeader/SortableTableHeader.tsx b/frontend/src/component/common/Table/SortableTableHeader/SortableTableHeader.tsx index fb11609274..c120624e15 100644 --- a/frontend/src/component/common/Table/SortableTableHeader/SortableTableHeader.tsx +++ b/frontend/src/component/common/Table/SortableTableHeader/SortableTableHeader.tsx @@ -1,5 +1,5 @@ import { VFC } from 'react'; -import { styled, TableHead, TableRow } from '@mui/material'; +import { TableHead, TableRow } from '@mui/material'; import { HeaderGroup } from 'react-table'; import { CellSortable } from './CellSortable/CellSortable'; @@ -9,23 +9,6 @@ interface ISortableTableHeaderProps { 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 = ({ headerGroups, className, @@ -33,7 +16,7 @@ export const SortableTableHeader: VFC = ({ }) => ( {headerGroups.map(headerGroup => ( - + {headerGroup.headers.map((column: HeaderGroup) => { const content = column.render('Header'); @@ -64,7 +47,7 @@ export const SortableTableHeader: VFC = ({ ); })} - + ))} ); diff --git a/frontend/src/component/common/Table/cells/ActionCell/ActionCell.tsx b/frontend/src/component/common/Table/cells/ActionCell/ActionCell.tsx index b65a4e872b..901de13cc8 100644 --- a/frontend/src/component/common/Table/cells/ActionCell/ActionCell.tsx +++ b/frontend/src/component/common/Table/cells/ActionCell/ActionCell.tsx @@ -9,7 +9,7 @@ const StyledContainer = styled(Box)(({ theme }) => ({ })); const StyledDivider = styled(Divider)(({ theme }) => ({ - borderColor: theme.palette.dividerAlternative, + borderColor: theme.palette.divider, height: theme.spacing(3), margin: theme.spacing(0, 2), })); diff --git a/frontend/src/component/common/Table/cells/FeatureSeenCell/FeatureSeenCell.tsx b/frontend/src/component/common/Table/cells/FeatureSeenCell/FeatureSeenCell.tsx index ca0f27daf3..1a578fe3a6 100644 --- a/frontend/src/component/common/Table/cells/FeatureSeenCell/FeatureSeenCell.tsx +++ b/frontend/src/component/common/Table/cells/FeatureSeenCell/FeatureSeenCell.tsx @@ -30,21 +30,21 @@ const useFeatureColor = () => { return (unit?: string): string => { switch (unit) { case 'second': - return theme.palette.activityIndicators.recent; + return theme.palette.seen.recent; case 'minute': - return theme.palette.activityIndicators.recent; + return theme.palette.seen.recent; case 'hour': - return theme.palette.activityIndicators.recent; + return theme.palette.seen.recent; case 'day': - return theme.palette.activityIndicators.recent; + return theme.palette.seen.recent; case 'week': - return theme.palette.activityIndicators.inactive; + return theme.palette.seen.inactive; case 'month': - return theme.palette.activityIndicators.abandoned; + return theme.palette.seen.abandoned; case 'year': - return theme.palette.activityIndicators.abandoned; + return theme.palette.seen.abandoned; default: - return theme.palette.activityIndicators.unknown; + return theme.palette.seen.unknown; } }; }; diff --git a/frontend/src/component/common/Table/cells/FeatureTypeCell/FeatureTypeCell.styles.ts b/frontend/src/component/common/Table/cells/FeatureTypeCell/FeatureTypeCell.styles.ts index 2cbed1538b..23e2f20d08 100644 --- a/frontend/src/component/common/Table/cells/FeatureTypeCell/FeatureTypeCell.styles.ts +++ b/frontend/src/component/common/Table/cells/FeatureTypeCell/FeatureTypeCell.styles.ts @@ -8,6 +8,6 @@ export const useStyles = makeStyles()(theme => ({ alignItems: 'center', }, icon: { - color: theme.palette.inactiveIcon, + color: theme.palette.action.disabled, }, })); diff --git a/frontend/src/component/context/ContectFormChip/ContextFormChip.tsx b/frontend/src/component/context/ContectFormChip/ContextFormChip.tsx index 60037f3d1a..a42ad1e9ca 100644 --- a/frontend/src/component/context/ContectFormChip/ContextFormChip.tsx +++ b/frontend/src/component/context/ContectFormChip/ContextFormChip.tsx @@ -16,7 +16,7 @@ const StyledContainer = styled('li')(({ theme }) => ({ alignItems: 'start', gap: theme.spacing(1), padding: theme.spacing(1), - background: theme.palette.secondaryContainer, + background: theme.palette.background.elevation2, borderRadius: theme.shape.borderRadius, wordBreak: 'break-word', })); diff --git a/frontend/src/component/environments/EnvironmentTable/EnvironmentActionCell/EnvironmentCloneModal/EnvironmentCloneModal.tsx b/frontend/src/component/environments/EnvironmentTable/EnvironmentActionCell/EnvironmentCloneModal/EnvironmentCloneModal.tsx index 49c83d72db..2798c70a5c 100644 --- a/frontend/src/component/environments/EnvironmentTable/EnvironmentActionCell/EnvironmentCloneModal/EnvironmentCloneModal.tsx +++ b/frontend/src/component/environments/EnvironmentTable/EnvironmentActionCell/EnvironmentCloneModal/EnvironmentCloneModal.tsx @@ -59,7 +59,7 @@ const StyledInput = styled(Input)(({ theme }) => ({ const StyledSecondaryContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(3), - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, borderRadius: theme.shape.borderRadiusMedium, marginTop: theme.spacing(4), })); diff --git a/frontend/src/component/events/EventDiff/EventDiff.tsx b/frontend/src/component/events/EventDiff/EventDiff.tsx index d4f5a205dd..e87db6ae29 100644 --- a/frontend/src/component/events/EventDiff/EventDiff.tsx +++ b/frontend/src/component/events/EventDiff/EventDiff.tsx @@ -18,10 +18,10 @@ const EventDiff = ({ entry }: IEventDiffProps) => { const theme = useTheme(); const styles: Record = { - A: { color: theme.palette.code.edited }, // array edited - E: { color: theme.palette.code.edited }, // edited - D: { color: theme.palette.code.diffSub }, // deleted - N: { color: theme.palette.code.diffAdd }, // added + A: { color: theme.palette.eventLog.edited }, // array edited + E: { color: theme.palette.eventLog.edited }, // edited + D: { color: theme.palette.eventLog.diffSub }, // deleted + N: { color: theme.palette.eventLog.diffAdd }, // added }; const diffs = diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx index 30e795232d..08ca64d4c8 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx @@ -57,7 +57,7 @@ const StyledHr = styled('hr')(({ theme }) => ({ height: '1px', margin: theme.spacing(2, 0), border: 'none', - background: theme.palette.tertiary.light, + background: theme.palette.background.elevation2, })); const StyledButtons = styled('div')(({ theme }) => ({ diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyIcon/FeatureStrategyIcon.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyIcon/FeatureStrategyIcon.tsx index 390266797b..33415c4ff7 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyIcon/FeatureStrategyIcon.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyIcon/FeatureStrategyIcon.tsx @@ -26,7 +26,7 @@ const StyledIcon = styled('div')(({ theme }) => ({ display: 'flex', alignItems: 'center', justifyContent: 'center', - color: theme.palette.inactiveIcon, + color: theme.palette.action.disabled, '& svg': { width: theme.spacing(2.5), diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyMenu/FeatureStrategyMenuCard/FeatureStrategyMenuCard.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyMenu/FeatureStrategyMenuCard/FeatureStrategyMenuCard.tsx index 4f0b3203e7..aae65734f5 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyMenu/FeatureStrategyMenuCard/FeatureStrategyMenuCard.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyMenu/FeatureStrategyMenuCard/FeatureStrategyMenuCard.tsx @@ -48,7 +48,7 @@ const StyledCard = styled(Link)(({ theme }) => ({ lineHeight: 1.25, borderWidth: '1px', borderStyle: 'solid', - borderColor: theme.palette.dividerAlternative, + borderColor: theme.palette.divider, borderRadius: theme.spacing(1), '&:hover, &:focus': { borderColor: theme.palette.primary.main, diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentChip.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentChip.tsx index fe3623d999..3604b0e8cc 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentChip.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentChip.tsx @@ -22,8 +22,8 @@ const StyledChip = styled('span')(({ theme }) => ({ paddingBlockStart: theme.spacing(0.5), paddingBlockEnd: theme.spacing(0.5), borderRadius: '100rem', - background: theme.palette.featureStrategySegmentChipBackground, - color: theme.palette.text.tertiaryContrast, + background: theme.palette.primary.main, + color: theme.palette.primary.contrastText, })); const StyledButton = styled('button')(({ theme }) => ({ diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentList.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentList.tsx index cd31ea5657..bc01ac0933 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentList.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategySegment/FeatureStrategySegmentList.tsx @@ -30,7 +30,7 @@ const StyledAnd = styled('p')(({ theme }) => ({ borderRadius: theme.shape.borderRadius, lineHeight: 1, color: theme.palette.text.primary, - backgroundColor: theme.palette.secondaryContainer, + backgroundColor: theme.palette.background.elevation2, })); export const FeatureStrategySegmentList = ({ diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts index 2b4b57c41b..b4b195da50 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChart/createChartOptions.ts @@ -22,7 +22,7 @@ export const createChartOptions = ( tooltip: { backgroundColor: 'white', bodyColor: theme.palette.text.primary, - titleColor: theme.palette.grey[700], + titleColor: theme.palette.action.active, borderColor: theme.palette.primary.main, borderWidth: 1, padding: 10, diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx index 14011179c3..7af385a12d 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx @@ -31,6 +31,9 @@ const StyledItem = styled('li')(({ theme }) => ({ backgroundColor: theme.palette.primary.main, color: theme.palette.primary.contrastText, }, + '& > [aria-pressed=true]:hover': { + backgroundColor: theme.palette.primary.light, + }, })); export const FeatureMetricsChips = ({ diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx index 2c3ffe64ee..004075305b 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsContent/FeatureMetricsContent.tsx @@ -39,7 +39,7 @@ export const FeatureMetricsContent = ({ borderTop={1} pt={2} mt={3} - borderColor={theme.palette.grey[200]} + borderColor={theme.palette.divider} > ({ padding: theme.spacing(2, 0, 0, 0), borderTopWidth: '1px', borderTopStyle: 'solid', - borderTopColor: theme.palette.dividerAlternative, + borderTopColor: theme.palette.divider, fontSize: theme.fontSizes.smallerBody, color: theme.palette.text.secondary, })); diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/EnvironmentAccordionBody/StrategyDraggableItem/StrategyItem/StrategyExecution/StrategyExecution.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/EnvironmentAccordionBody/StrategyDraggableItem/StrategyItem/StrategyExecution/StrategyExecution.tsx index 8202c01c02..b5c38951d2 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/EnvironmentAccordionBody/StrategyDraggableItem/StrategyItem/StrategyExecution/StrategyExecution.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/EnvironmentAccordionBody/StrategyDraggableItem/StrategyItem/StrategyExecution/StrategyExecution.tsx @@ -16,6 +16,7 @@ import { parseParameterStrings, } from 'utils/parseParameter'; import StringTruncator from 'component/common/StringTruncator/StringTruncator'; +import { Badge } from 'component/common/Badge/Badge'; interface IStrategyExecutionProps { strategy: IFeatureStrategyPayload; @@ -29,7 +30,7 @@ const NoItems: VFC = () => ( const StyledValueContainer = styled(Box)(({ theme }) => ({ padding: theme.spacing(2, 3), - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadiusMedium, })); @@ -72,13 +73,8 @@ export const StrategyExecution: VFC = ({ />
- {' '} - of your base{' '} + {percentage}% of + your base{' '} {constraints.length > 0 ? 'who match constraints' : ''}{' '} @@ -167,12 +163,7 @@ export const StrategyExecution: VFC = ({
{nameItem} {isSetTo} - + {percentage}%
) : null; @@ -187,16 +178,15 @@ export const StrategyExecution: VFC = ({ text={name} /> {isSetTo} - + > + {parameters[name]} + ) : null; @@ -266,13 +256,7 @@ export const StrategyExecution: VFC = ({ strategy.name === 'default' && ( <> - The standard strategy is{' '} - {' '} + The standard strategy is ON{' '} for all users. diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx index 33269ea5f6..c8a6147668 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx @@ -3,7 +3,6 @@ import { AccordionDetails, AccordionSummary, Box, - Chip, styled, } from '@mui/material'; import { ExpandMore } from '@mui/icons-material'; @@ -22,6 +21,7 @@ import { FEATURE_ENVIRONMENT_ACCORDION } from 'utils/testIds'; import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; import { FeatureStrategyIcons } from 'component/feature/FeatureStrategy/FeatureStrategyIcons/FeatureStrategyIcons'; import { useGlobalLocalStorage } from 'hooks/useGlobalLocalStorage'; +import { Badge } from 'component/common/Badge/Badge'; interface IFeatureOverviewEnvironmentProps { env: IFeatureEnvironment; @@ -55,7 +55,7 @@ const StyledAccordionDetails = styled(AccordionDetails, { shouldForwardProp: prop => prop !== 'enabled', })<{ enabled: boolean }>(({ theme, enabled }) => ({ padding: theme.spacing(3), - background: theme.palette.secondaryContainer, + background: theme.palette.background.elevation2, borderBottomLeftRadius: theme.shape.borderRadiusLarge, borderBottomRightRadius: theme.shape.borderRadiusLarge, borderBottom: `4px solid ${ @@ -162,12 +162,12 @@ const FeatureOverviewEnvironment = ({ + > + Disabled + } /> diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentMetrics/FeatureOverviewEnvironmentMetrics.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentMetrics/FeatureOverviewEnvironmentMetrics.tsx index 7ca34960ac..8d66d06c51 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentMetrics/FeatureOverviewEnvironmentMetrics.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentMetrics/FeatureOverviewEnvironmentMetrics.tsx @@ -40,7 +40,7 @@ const StyledInfoParagraph = styled('p')(({ theme }) => ({ })); const StyledIcon = styled(FiberManualRecord)(({ theme }) => ({ - fill: theme.palette.standaloneBackground, + fill: theme.palette.background.application, height: '75px', width: '75px', [theme.breakpoints.down(500)]: { diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/SectionSeparator/SectionSeparator.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/SectionSeparator/SectionSeparator.tsx index ef525e8529..e1a6a8376c 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/SectionSeparator/SectionSeparator.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/SectionSeparator/SectionSeparator.tsx @@ -14,7 +14,7 @@ const SeparatorContainer = styled('div')(({ theme }) => ({ transform: 'translateY(-50%)', height: 2, width: '100%', - backgroundColor: theme.palette.dividerAlternative, + backgroundColor: theme.palette.divider, }, })); @@ -22,7 +22,7 @@ const SeparatorContent = styled('span')(({ theme }) => ({ fontSize: theme.fontSizes.bodySize, textAlign: 'center', padding: '0 1rem', - background: theme.palette.secondaryContainer, + background: theme.palette.background.elevation2, position: 'relative', maxWidth: '80%', color: theme.palette.text.primary, diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx index 05f0a1bbb7..b80b2ff69b 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx @@ -10,8 +10,8 @@ import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; const StyledContainer = styled('div')(({ theme }) => ({ borderRadius: theme.shape.borderRadiusLarge, - color: theme.palette.text.tertiaryContrast, - backgroundColor: theme.palette.featureMetaData, + color: theme.palette.primary.contrastText, + backgroundColor: theme.palette.background.sidebar, display: 'flex', flexDirection: 'column', maxWidth: '350px', @@ -54,7 +54,7 @@ const StyledBodyItem = styled('span')(({ theme }) => ({ const StyledDescriptionContainer = styled('div')(({ theme }) => ({ display: 'flex', alignItems: 'center', - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, })); const FeatureOverviewMetaData = () => { @@ -74,7 +74,7 @@ const FeatureOverviewMetaData = () => { marginRight: theme.spacing(2), height: '40px', width: '40px', - fill: theme.palette.text.tertiaryContrast, + fill: theme.palette.primary.contrastText, })} />{' '} {capitalize(type || '')} toggle @@ -101,8 +101,8 @@ const FeatureOverviewMetaData = () => { > ({ - color: theme.palette.text - .tertiaryContrast, + color: theme.palette.primary + .contrastText, })} /> @@ -124,8 +124,8 @@ const FeatureOverviewMetaData = () => { > ({ - color: theme.palette.text - .tertiaryContrast, + color: theme.palette.primary + .contrastText, })} /> diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx index 5b70225d60..8c5a62421f 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx @@ -8,9 +8,7 @@ const StyledVisibilityToggle = styled(IconButton, { })<{ visibilityOff: boolean }>(({ theme, visibilityOff }) => ({ marginLeft: 'auto', marginRight: theme.spacing(-1), - color: visibilityOff - ? theme.palette.neutral.main - : theme.palette.tertiary.main, + color: visibilityOff ? theme.palette.neutral.main : theme.palette.divider, '&:hover': { color: theme.palette.neutral.main, }, diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx index 2e940f773f..e735ed9fb4 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx @@ -27,9 +27,6 @@ const StyledTagContainer = styled('div')(({ theme }) => ({ const StyledChip = styled(Chip)(({ theme }) => ({ fontSize: theme.fontSizes.smallBody, - '.MuiChip-deleteIcon': { - color: theme.palette.neutral.main, - }, })); const StyledDivider = styled(Divider)(({ theme }) => ({ diff --git a/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsCard/EnvironmentVariantsCard.tsx b/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsCard/EnvironmentVariantsCard.tsx index 96bbd44455..5a48548655 100644 --- a/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsCard/EnvironmentVariantsCard.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsCard/EnvironmentVariantsCard.tsx @@ -8,7 +8,7 @@ import { Badge } from 'component/common/Badge/Badge'; const StyledCard = styled('div')(({ theme }) => ({ padding: theme.spacing(3), borderRadius: theme.shape.borderRadiusLarge, - border: `1px solid ${theme.palette.dividerAlternative}`, + border: `1px solid ${theme.palette.divider}`, '&:not(:last-child)': { marginBottom: theme.spacing(3), }, diff --git a/frontend/src/component/feature/FeatureView/FeatureView.tsx b/frontend/src/component/feature/FeatureView/FeatureView.tsx index b1c3de6d4c..502f3fd414 100644 --- a/frontend/src/component/feature/FeatureView/FeatureView.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureView.tsx @@ -68,7 +68,7 @@ const StyledToolbarContainer = styled('div')({ const StyledSeparator = styled('div')(({ theme }) => ({ width: '100%', - backgroundColor: theme.palette.tertiary.light, + backgroundColor: theme.palette.background.elevation2, height: '1px', })); diff --git a/frontend/src/component/feedback/FeedbackCES/FeedbackCES.tsx b/frontend/src/component/feedback/FeedbackCES/FeedbackCES.tsx index 2981b34aaa..709550d004 100644 --- a/frontend/src/component/feedback/FeedbackCES/FeedbackCES.tsx +++ b/frontend/src/component/feedback/FeedbackCES/FeedbackCES.tsx @@ -43,7 +43,7 @@ const StyledClose = styled('div')({ const StyledCloseIcon = styled(CloseOutlined)(({ theme }) => ({ fontSize: '1.5rem', - color: theme.palette.inactiveIcon, + color: theme.palette.action.disabled, })); export const FeedbackCES = ({ state }: IFeedbackCESProps) => { diff --git a/frontend/src/component/feedback/FeedbackCES/FeedbackCESScore.tsx b/frontend/src/component/feedback/FeedbackCES/FeedbackCESScore.tsx index 8c2cc6eec1..cd6472cff1 100644 --- a/frontend/src/component/feedback/FeedbackCES/FeedbackCESScore.tsx +++ b/frontend/src/component/feedback/FeedbackCES/FeedbackCESScore.tsx @@ -41,7 +41,7 @@ const StyledScoreValue = styled('label')(({ theme }) => ({ display: 'grid', justifyContent: 'center', alignItems: 'center', - background: theme.palette.grey[300], + background: theme.palette.divider, width: '3rem', height: '3rem', borderRadius: '10rem', @@ -53,7 +53,7 @@ const StyledScoreValue = styled('label')(({ theme }) => ({ '& input:checked + span': { fontWeight: theme.fontWeight.bold, background: theme.palette.primary.main, - color: theme.palette.text.tertiaryContrast, + color: theme.palette.primary.contrastText, }, '& input:focus-visible + span': { outline: '2px solid', diff --git a/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap b/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap index 27cd579408..6472dd925e 100644 --- a/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap +++ b/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap @@ -29,7 +29,7 @@ exports[`FeedbackCESForm 1`] = ` Very difficult