-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try: Light scrim and softer shadows. #50314
Conversation
Size Change: +372 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
It may just be me, but I find the boundaries of the modal much less clear with the white scrim – there's not enough contrast. It wouldn't be so bad if we could apply some Imo we should explore these things separately. With the introduction of the Frame in site view (and its interplay with things like modals, snackbars, popovers) it might be a good time to explore an abstracted elevation scale to replace the current prescriptive one. |
Flaky tests detected in ac0417b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4890519177
|
Not sure the light works well as you mentioned, within the Site View especially, but this variation looks fine. |
Closing, as separate work is in progress and this is older. |
What?
Work in progress!
Our shadows are not super consistent, and they can in places fel a bit heavy, especially the modal. Popover:
Modal:
This PR aims to bring a little consistency and system to them, and make them lighter, literally, with a white scrim, and softer:
It also adds a depth in between popover and modal, tentatively called "confirm", for the alert/confirm variant of the modal dialog component:
This is a draft PR in part to validate these shadows, but also because the component needs a little work in order to work with the new light scrim. Notably that light scrim does not look good in the dark site view:
Testing Instructions