-
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
Update elevation in the site editor #65410
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +291 B (+0.02%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Flaky tests detected in aec7f08. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10906471907
|
Follow up to #65159
What?
Applies elevation scale values to site editor elements using custom shadows and to any elements that require shadows but currently lack them.
Why?
Consistency and polish.
So far as I can tell there are only two elements that need updating...
Drag chip
When dragging blocks (either on the canvas or in list view) a dark chip appears. I've applied
$elevation-small
here:Preview frame
It's tricky to see given it appears on such a dark background, but the preview frame has a strong shadow applied. It's much easier to see if we adjust the main background color:
I've switched the resting shadow to
$elevation-x-small
increasing to$elevation-large
on hover (given the transform animation), in line with the scale outlined in #64108. This change is barely perceptible currently, but will become more apparent when the color scale is expanded (#53612) and modes like light/dark become available. In the mean time here's a demo with an adjusted background color as before:frame.mp4
In addition to updating the elements above, I've added elevation to the 'Content frame'. Once again this isn't visible now due to the dark background, but will become important later. Here's a demonstration of how this would look in a dedicated "Light mode":
Testing Instructions
.edit-site-resizable-frame__inner-content
including hover effect (this is easier if you change the background color applied to.edit-site-layout
in dev tools..edit-site-layout__area
.