From 58cadafee4becf91020ca5dddc51378468419027 Mon Sep 17 00:00:00 2001 From: Jamey Huffnagle Date: Thu, 14 Mar 2024 12:03:54 -0400 Subject: [PATCH] get rid of cardOutlineBorder abstraction per Mel --- .../organisms/ChooseProtocolSlideout/index.tsx | 12 +++++++++++- app/src/organisms/ChooseRobotSlideout/index.tsx | 12 +++++++++++- .../SetupLiquids/LiquidDetailCard.tsx | 16 +++++++++++++--- .../SetupLiquids/SetupLiquidsList.tsx | 12 +++++++++++- components/src/helix-design-system/borders.ts | 9 --------- 5 files changed, 46 insertions(+), 15 deletions(-) diff --git a/app/src/organisms/ChooseProtocolSlideout/index.tsx b/app/src/organisms/ChooseProtocolSlideout/index.tsx index e532fb8a124..11279cf69b0 100644 --- a/app/src/organisms/ChooseProtocolSlideout/index.tsx +++ b/app/src/organisms/ChooseProtocolSlideout/index.tsx @@ -40,6 +40,16 @@ import type { Robot } from '../../redux/discovery/types' import type { StoredProtocolData } from '../../redux/protocol-storage' import type { State } from '../../redux/types' +export const CARD_OUTLINE_BORDER_STYLE = css` + border-style: ${BORDERS.styleSolid}; + border-width: 1px; + border-color: ${COLORS.grey30}; + border-radius: ${BORDERS.borderRadius4}; + &:hover { + border-color: ${COLORS.grey55}; + } +` + const _getFileBaseName = (filePath: string): string => { return filePath.split('/').reverse()[0] } @@ -360,7 +370,7 @@ function StoredProtocolList(props: StoredProtocolListProps): JSX.Element { minHeight="11rem" padding={SPACING.spacing16} css={css` - ${BORDERS.cardOutlineBorder} + ${CARD_OUTLINE_BORDER_STYLE} &:hover { border-color: ${COLORS.grey30}; } diff --git a/app/src/organisms/ChooseRobotSlideout/index.tsx b/app/src/organisms/ChooseRobotSlideout/index.tsx index 152939001c5..fa8d0cb1c3f 100644 --- a/app/src/organisms/ChooseRobotSlideout/index.tsx +++ b/app/src/organisms/ChooseRobotSlideout/index.tsx @@ -46,6 +46,16 @@ import type { State, Dispatch } from '../../redux/types' import type { Robot } from '../../redux/discovery/types' import { useFeatureFlag } from '../../redux/config' +export const CARD_OUTLINE_BORDER_STYLE = css` + border-style: ${BORDERS.styleSolid}; + border-width: 1px; + border-color: ${COLORS.grey30}; + border-radius: ${BORDERS.borderRadius4}; + &:hover { + border-color: ${COLORS.grey55}; + } +` + interface RobotIsBusyAction { type: 'robotIsBusy' robotName: string @@ -210,7 +220,7 @@ export function ChooseRobotSlideout( {!isScanning && healthyReachableRobots.length === 0 ? (