Skip to content

Commit

Permalink
update ListButton new type
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Feb 21, 2025
1 parent 17aadcf commit 532c9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/src/atoms/ListButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { StyleProps } from '../../primitives'

export * from './ListButtonChildren/index'

type ListButtonType = 'noActive' | 'connected' | 'notConnected' | 'white'
type ListButtonType = 'noActive' | 'connected' | 'notConnected' | 'onColor'

interface ListButtonProps extends StyleProps {
type: ListButtonType
Expand All @@ -35,7 +35,7 @@ const LISTBUTTON_PROPS_BY_TYPE: Record<
backgroundColor: COLORS.yellow30,
hoverBackgroundColor: COLORS.yellow35,
},
white: {
onColor: {
backgroundColor: COLORS.white,
hoverBackgroundColor: COLORS.grey10,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export const SecondStepsMoveLiquidTools = ({
}
showButton
padding="0"
listButtonType="white"
listButtonType="onColor"

Check warning on line 449 in protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/SecondStepsMoveLiquidTools.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/SecondStepsMoveLiquidTools.tsx#L447-L449

Added lines #L447 - L449 were not covered by tests
/>
</Flex>

Check warning on line 451 in protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/SecondStepsMoveLiquidTools.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/SecondStepsMoveLiquidTools.tsx#L451

Added line #L451 was not covered by tests
) : null}
Expand Down

0 comments on commit 532c9f7

Please sign in to comment.