Skip to content
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

Block editor: remove reusable blocks stylesheet from iframe #66285

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

ellatrix
Copy link
Member

What?

Similar to #33496.

These styles are not needed within the canvas of the editor.

Why?

There's only a single rule that is related to a modal: https://github.com/WordPress/gutenberg/blob/da4ea0d4afcbee49a6963dfcbf00d237064751cf/packages/reusable-blocks/src/components/reusable-blocks-menu-items/style.scss

How?

Remove it.

Testing Instructions

Try the "create pattern" menu item for a block. The z-index seems to be there so that the popover of the block toolbar appears under the modal.

Testing Instructions for Keyboard

Screenshots or screencast

@ellatrix ellatrix added the [Type] Code Quality Issues or PRs that relate to code quality label Oct 21, 2024
Copy link

github-actions bot commented Oct 21, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's just a z-index rule in this file, It might not even be needed anymore.

@ellatrix
Copy link
Member Author

@youknowriad I commented on this in the testing instructions. It is still needed.

@ellatrix ellatrix merged commit 3705cf8 into trunk Oct 22, 2024
63 checks passed
@ellatrix ellatrix deleted the remove/reusable-style-iframe branch October 22, 2024 05:57
@github-actions github-actions bot added this to the Gutenberg 19.6 milestone Oct 22, 2024
karthick-murugan pushed a commit to karthick-murugan/gutenberg that referenced this pull request Nov 13, 2024
…s#66285)

Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants