-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: Tighter modals #20238
Conversation
📸 UI snapshots have been updated62 snapshot changes in total. 0 added, 62 modified, 0 deleted:
Triggered by this commit. |
frontend/__snapshots__/components-subscriptions--subscriptions--light.png
Show resolved
Hide resolved
Size Change: +52 B (0%) Total Size: 2.22 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated10 snapshot changes in total. 0 added, 10 modified, 0 deleted:
Triggered by this commit. |
There was a problem hiding this 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%); |
There was a problem hiding this comment.
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?
Problem
Modals padding always felt off to me and in 3000 its even more off.
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?