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

feat: Tighter modals #20238

Merged
merged 14 commits into from
Feb 12, 2024
Merged

feat: Tighter modals #20238

merged 14 commits into from
Feb 12, 2024

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Feb 9, 2024

Problem

Modals padding always felt off to me and in 3000 its even more off.

Changes

  • Changes the header and footer padding/margins
  • Fixes the box shadow to be a proper shadow for this case
  • Fixes replay modal
  • Changes the button styles for subscription modal. Its not perfect but its also not important

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@benjackwhite benjackwhite requested review from corywatilo and a team February 9, 2024 18:03
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

62 snapshot changes in total. 0 added, 62 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented Feb 12, 2024

Size Change: +52 B (0%)

Total Size: 2.22 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 2.22 MB +52 B (0%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

  • chromium: 0 added, 4 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@benjackwhite benjackwhite enabled auto-merge (squash) February 12, 2024 11:01
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

10 snapshot changes in total. 0 added, 10 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@benjackwhite benjackwhite merged commit b7855c5 into master Feb 12, 2024
79 checks passed
@benjackwhite benjackwhite deleted the feat/modals-3001 branch February 12, 2024 14:11
Copy link
Member

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

This looks better!
Would be good to rethink shadows for floating UI elements as a whole at some point

@@ -176,6 +176,7 @@ $_lifecycle_dormant: $_danger;
--radius: 0.375rem;
--radius-sm: 0.25rem;
--shadow-elevation: 0px 16px 16px -16px rgb(0 0 0 / 35%);
--modal-shadow-elevation: 0px 16px 16px -16px rgb(0 0 0 / 35%);
Copy link
Member

Choose a reason for hiding this comment

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

I feel like for modals we should be using the same shadow as for other floating stuff, i.e. popovers/dropdowns. I agree the current shadow does not necessary convey that the element is floating above other content, since it looks button-like. @corywatilo You recently mentioned improving dropdowns, maybe you have some opinions on this?

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.

4 participants