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): add and use deck map component in interventionmodal #15570

Merged
merged 9 commits into from
Jul 5, 2024
Prev Previous commit
Next Next commit
and after all, why not? it's mine, isn't it?
my own? my... precious?
  • Loading branch information
sfoster1 committed Jul 5, 2024
commit 7b2d00bdb762d4fbf03a191773ff6638f2132863
37 changes: 21 additions & 16 deletions app/src/molecules/InterventionModal/DeckMapContent.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,29 @@ const meta: Meta<React.ComponentProps<typeof DeckMapContent>> = {
if: { arg: 'kind', eq: 'intervention' },
},
highlightLabwareEventuallyIn: {
if: { arg: 'kind', eq: 'intervention' },
if: { arg: 'kind', eq: 'intervention' },
},
},
decorators: [
(Story) => (
<Box css={css`
border: 4px solid #000000;
border-radius: ${BORDERS.borderRadius8};
max-width: 47rem;
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
max-width: 62rem;
max-height: 33.5rem;
}
`}>
<TwoColumn ><StandInContent /><Story />
</TwoColumn>
</Box>)
]
decorators: [
Story => (
<Box
css={css`
border: 4px solid #000000;
border-radius: ${BORDERS.borderRadius8};
max-width: 47rem;
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
max-width: 62rem;
max-height: 33.5rem;
}
`}
>
<TwoColumn>
<StandInContent />
<Story />
</TwoColumn>
</Box>
),
],
}

export default meta
Expand Down
11 changes: 3 additions & 8 deletions components/src/molecules/LocationIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { css } from 'styled-components'

import { Icon } from '../../icons'
import { Flex, Text } from '../../primitives'
import { ALIGN_CENTER } from '../../styles'
import { ALIGN_CENTER, JUSTIFY_CENTER } from '../../styles'
import { RESPONSIVENESS, SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { BORDERS, COLORS } from '../../helix-design-system'

Expand Down Expand Up @@ -36,6 +36,7 @@ const LOCATION_ICON_STYLE = css<{
width: ${props => props.width ?? 'max-content'};
padding: ${SPACING.spacing2} ${SPACING.spacing4};
border-radius: ${BORDERS.borderRadius4};
justify-content: ${JUSTIFY_CENTER};
height: max-content;

@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
Expand All @@ -48,13 +49,7 @@ const LOCATION_ICON_STYLE = css<{
`

const SLOT_NAME_TEXT_STYLE = css`
font-size: ${TYPOGRAPHY.fontSizeCaption};
line-height: ${TYPOGRAPHY.lineHeightNormal};
font-weight: ${TYPOGRAPHY.fontWeightBold};

@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
${TYPOGRAPHY.smallBodyTextBold}
}
${TYPOGRAPHY.smallBodyTextBold}
`

export function LocationIcon({
Expand Down