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: 7.82 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 26a0dbe. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/25122003035
|
There was a problem hiding this comment.
Looks like a new package release happened after opening this PR — we'll need to rebase/merge trunk and create a new CHANGELOG entry in the Unreleased section
|
|
||
| .edit-site-layout__sidebar-region { | ||
| z-index: z-index(".edit-site-layout__sidebar"); | ||
| z-index: 1; |
There was a problem hiding this comment.
With the refactor, it becomes harder to understand the context behind these values, which may cause future unwated breakage.
IMO we should either add CSS comments around the file, eg
| z-index: 1; | |
| // Sits behind `.edit-site-layout__canvas-container` so the canvas stays on top | |
| // when the sidebar is `position: fixed` in `is-full-canvas` mode. | |
| z-index: 1; |
Or group those z-index assignments next to each other, or even move them to local sass variables at the top of the file, with a little explanation
| bottom: 0; | ||
| content: ""; | ||
| z-index: z-index(".edit-site-layout__canvas-container.is-resizing::after"); | ||
| z-index: 100; |
There was a problem hiding this comment.
Noting that this could probably be just any positive number, but I understand that we may keep it at 100 for the sake of the refactor
What?
Inlines the Site Editor layout z-index values into their local stylesheet.
Why?
The shared z-index map is easier to maintain when it only contains values that need to be coordinated across broader contexts. These values are local to the Site Editor layout.
How?
Moves the existing numeric z-index values from
packages/base-styles/_z-index.scssintopackages/edit-site/src/components/layout/style.scss, preserving the current stacking order between the sidebar, canvas, mobile layout, and resizing overlay.Testing Instructions
npm start./wp-admin/site-editor.php.