-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replace instances of deprecated elevation variables #64656
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: 0 B Total Size: 1.77 MB ℹ️ View Unchanged
|
Flaky tests detected in 9dc871d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10476219774
|
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.
LGTM 🚀
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.
Thank you for relentless cleanup.
@@ -120,7 +120,7 @@ $input-size: 300px; | |||
} | |||
|
|||
.block-editor-url-input__button-modal { | |||
box-shadow: $shadow-popover; | |||
box-shadow: $elevation-x-small; | |||
border: 1px solid $gray-300; |
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.
Not a blocker, just noticing. Should this be $border-width instead of 1px?
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.
Yes, there a number of instances of such oversights 😓
Let's open a separate PR to address, hopefully it's a quick find & replace for this one.
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: jasmussen <[email protected]>
Following up on #64108 and #64655
What?
Replace instances of the deprecated
$shadow-popover
and$shadow-modal
variables in the editor.Why?
Code cleanliness. Adoption of elevation scale from the design system.
Testing Instructions
Note
The Gallery block was referencing
$shadow-popover
and applying it to.block-library-gallery-item__inline-menu
, but an element with that class doesn't ever seem to render. It may be safe to remove this style entirely, but that's one to handle separately.