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

🔨 (grapher) refactor modals #3435

Merged
merged 1 commit into from
May 3, 2024
Merged

🔨 (grapher) refactor modals #3435

merged 1 commit into from
May 3, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Apr 2, 2024

Cycle 2024.2: Entity selector (prep work) | Designs

Summary

Refactors Grapher's modals by introducing typography utility classes that map to the Grapher Library defined in Figma.

This PR...

  • gets rid of the em unit in modals (i.e. modals are now independent of Grapher's baseFontSize)
  • adds a scss file called typography.scss that defines a set of utility classes for typography (similar to how it's done for the site)
  • refactors Grapher's modal such that the scrollbar is on the very right (used to be padded)
  • hides image previews in the Download modal on small screens

Notes

  • Ignore the entity selector for now. It will be redesigned in subsequent PRs..
  • Since modals are now independent of the baseFontSize, they don't scale the font sizes down on smaller screens. I think that's what we want, but I'll make sure Marwa signs off on it when we do a design review.

@marcelgerber
Copy link
Member

marcelgerber commented Apr 4, 2024

  • hides image previews in the Download modal on small screens

That's not part of this PR, right? I couldn't see it anywhere in the code

Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

Nice! I did a bunch of before/after comparisons, and all the modals look pretty much identical with a few tiny touchups.

Need to fix that one thing above, but otherwise good to go!

Copy link
Member

Choose a reason for hiding this comment

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

This one here doesn't seem to work just right; I'm seeing this (left is prod, right is your staging server):
CleanShot 2024-04-04 at 10 58 43

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, good catch! Thank you!

Copy link
Member Author

Choose a reason for hiding this comment

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

I realise now that this is a quirk of the staging server because the data page's HTML changed but wasn't rebaked. My manual deploy doesn't get through but if you check locally, it should look okay :)

Copy link
Member Author

sophiamersmann commented May 3, 2024

Merge activity

Base automatically changed from close-button to master May 3, 2024 08:09
@sophiamersmann sophiamersmann merged commit 1082fe0 into master May 3, 2024
10 of 20 checks passed
@sophiamersmann sophiamersmann deleted the refactor-modals branch May 3, 2024 08:11
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