Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(app): Update robot settings colors #14520

Merged
merged 5 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/molecules/WizardHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface WizardHeaderProps {
const EXIT_BUTTON_STYLE = css`
${TYPOGRAPHY.pSemiBold};
text-transform: ${TYPOGRAPHY.textTransformCapitalize};
color: ${COLORS.grey50};
color: ${COLORS.grey60};

&:hover {
opacity: 70%;
Expand Down
2 changes: 1 addition & 1 deletion app/src/molecules/WizardRequiredEquipmentList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function WizardRequiredEquipmentList(
<StyledText
marginTop={SPACING.spacing8}
as="label"
color={COLORS.grey50}
color={COLORS.grey60}
>
{footer}
</StyledText>
Expand Down
4 changes: 3 additions & 1 deletion app/src/organisms/Breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Icon,
ALIGN_CENTER,
ALIGN_FLEX_START,
BORDERS,
COLORS,
DIRECTION_ROW,
SPACING,
Expand Down Expand Up @@ -40,7 +41,7 @@ function CrumbName({ crumbName, isLastCrumb }: CrumbNameProps): JSX.Element {
return (
<Flex
alignItems={ALIGN_CENTER}
color={isLastCrumb ? COLORS.grey60 : COLORS.blue50}
color={isLastCrumb ? COLORS.grey50 : COLORS.blue50}
>
<Box
paddingRight={SPACING.spacing4}
Expand Down Expand Up @@ -121,6 +122,7 @@ function BreadcrumbsComponent(): JSX.Element | null {
<Flex
alignItems={ALIGN_FLEX_START}
backgroundColor={COLORS.white}
borderBottom={BORDERS.lineBorder}
css={TYPOGRAPHY.labelRegular}
flexDirection={DIRECTION_ROW}
padding={`${SPACING.spacing4} 0 ${SPACING.spacing4} ${SPACING.spacing8}`}
Expand Down
5 changes: 4 additions & 1 deletion app/src/organisms/CalibrationStatusCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ export function CalibrationStatusCard({
let statusLabelBackgroundColor: string = COLORS.red30
let statusLabelIconColor: string = COLORS.red60
let statusLabelText = t('missing_calibration_data')
let statusLabelTextColor = COLORS.red60

// if the tasklist is empty, though, all calibrations are good
if (taskListStatus === 'complete') {
statusLabelBackgroundColor = COLORS.green30
statusLabelIconColor = COLORS.green60
statusLabelText = t('calibration_complete')
statusLabelTextColor = COLORS.green60
// if we have tasks and they are all marked bad, then we should
// strongly suggest they re-do those calibrations
} else if (taskListStatus === 'bad') {
statusLabelBackgroundColor = COLORS.yellow30
statusLabelIconColor = COLORS.yellow60
statusLabelText = t('calibration_recommended')
statusLabelTextColor = COLORS.yellow60
}

return (
Expand All @@ -77,7 +80,7 @@ export function CalibrationStatusCard({
status={statusLabelText}
backgroundColor={statusLabelBackgroundColor}
iconColor={statusLabelIconColor}
textColor={COLORS.black90}
textColor={statusLabelTextColor}
fontWeight={TYPOGRAPHY.fontWeightSemiBold}
iconSize="0.313rem"
/>
Expand Down
4 changes: 2 additions & 2 deletions app/src/organisms/ChooseRobotSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function ChooseRobotSlideout(
<Flex flexDirection={DIRECTION_ROW} alignItems={ALIGN_CENTER}>
<StyledText
as="p"
color={COLORS.grey50}
color={COLORS.grey60}
marginRight={SPACING.spacing12}
>
{t('app_settings:searching')}
Expand All @@ -199,7 +199,7 @@ export function ChooseRobotSlideout(
name="ot-spinner"
spin
size="1.25rem"
color={COLORS.grey50}
color={COLORS.grey60}
/>
</Flex>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const AboutPipetteSlideout = (
<StyledText
as="h6"
fontWeight={TYPOGRAPHY.fontWeightSemiBold}
color={COLORS.grey50}
color={COLORS.grey60}
data-testid={`AboutPipetteSlideout_serial_number_text_${pipetteId}`}
>
{i18n.format(t('serial_number'), 'upperCase')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,17 @@ export function DeviceResetSlideout({
<Flex
flexDirection={DIRECTION_ROW}
alignItems={ALIGN_CENTER}
backgroundColor={COLORS.yellow20}
backgroundColor={COLORS.yellow30}
borderRadius={BORDERS.borderRadiusSize1}
padding={SPACING.spacing8}
border={`1px solid ${COLORS.yellow50}`}
border={`1px solid ${COLORS.yellow60}`}
marginBottom={SPACING.spacing24}
>
<Icon
name="alert-circle"
size="1rem"
marginRight={SPACING.spacing8}
color={COLORS.yellow50}
color={COLORS.yellow60}
/>
<StyledText as="p">{t('resets_cannot_be_undone')}</StyledText>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/LabwareDetails/ManufacturerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function ManufacturerDetails(
brandName === 'all' || brandName === 'generic' ? t(brandName) : brandName

return (
<Box backgroundColor={COLORS.grey10} padding={SPACING.spacing16}>
<Box backgroundColor={COLORS.grey20} padding={SPACING.spacing16}>
<Flex
flexDirection={DIRECTION_ROW}
justifyContent={JUSTIFY_SPACE_BETWEEN}
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/LabwareDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function LabwareDetails(props: LabwareDetailsProps): JSX.Element {
<Slideout onCloseClick={props.onClose} title={slideoutHeader} isExpanded>
<Gallery definition={definition} />
<Box
backgroundColor={COLORS.grey10}
backgroundColor={COLORS.grey20}
padding={SPACING.spacing16}
marginBottom={SPACING.spacing24}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function RobotSettingsDeckCalibration({
{t('deck_calibration_title')}
</StyledText>
<StyledText as="p">{t('deck_calibration_description')}</StyledText>
<StyledText as="label" color={COLORS.grey50}>
<StyledText as="label" color={COLORS.grey60}>
{deckLastModified}
</StyledText>
</Flex>
Expand Down
1 change: 0 additions & 1 deletion app/src/pages/Devices/RobotSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export function RobotSettings(): JSX.Element | null {
<Box minWidth={SIZE_6} height="max-content" padding={SPACING.spacing16}>
<Flex
backgroundColor={COLORS.white}
border={BORDERS.lineBorder}
borderRadius={BORDERS.radiusSoftCorners}
flexDirection={DIRECTION_COLUMN}
marginBottom={SPACING.spacing16}
Expand Down
Loading