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

Work modals responsive fix #217

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Work modals responsive fix #217

merged 1 commit into from
Feb 7, 2023

Conversation

adamjarling
Copy link
Contributor

What does this do?

Updates Work modals (Find / Cite / Download) to behave better on mobile/tablet.

Before

image

After

image

@adamjarling adamjarling self-assigned this Feb 6, 2023
@adamjarling adamjarling changed the title 3313 work modals Work modals responsive fix Feb 6, 2023
Copy link
Member

@mathewjordan mathewjordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch. Only issue is the data-id.

@@ -14,6 +14,18 @@ const StyledBloomIIIFWrapper = styled("div", {
".swiper-slide[data-type='collection']": {
display: "none",
},

"@sm": {
"& > div > div": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for now but man I hate this div cascade. Some near future tech debt to come in and make these targets more specific. Also could just be a Bloom thing too?

<div>
<Heading as="h2">All Subjects</Heading>
<>
<Heading as="h2" css={{ "@sm": { textAlign: "center" } }}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh way, mediaQuery in a css prop. I had not tried that. 🧙

@@ -29,6 +29,7 @@ const SharedDialog: React.FC<SharedDialogProps> = ({
<Dialog.Portal>
<DialogOverlay />
<DialogContent
data-id="adam"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be thrown out, right? 🗑️

components/Shared/Dialog.tsx Outdated Show resolved Hide resolved
@adamjarling adamjarling merged commit 7636bf9 into deploy/staging Feb 7, 2023
@adamjarling adamjarling deleted the 3313-work-modals branch February 7, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants