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

Site Editor: restore block inserter previews #26583

Merged
merged 1 commit into from Oct 30, 2020

Conversation

mattwiebe
Copy link
Contributor

Description

The fix in #26432 accidentally broke block previews in the Inserter due to a naïve use of overflow: hidden to fix the overscroll with the block library open in the site editor.

A little testing revealed that the .components-visually-hidden element inside .block-editor-inserter__tips might be at the root of causing a browser bug due to its odd combination of styles. Trusty position: relative stabilized the rendering context and there was once again peace in the land.

How has this been tested?

Ensuring block previews appear again when hovering over a block in the block library

Types of changes

Bug fix

The fix in WordPress#26432 accidentally broke block previews in the Inserter due to a naïve use of `overflow: hidden` to fix the overscroll with
the block library open in the site editor

A little testing revealed that the `.components-visually-hidden` element inside `.block-editor-inserter__tips` might be at the
root of causing a browser bug due to its odd combination of styles. Trusty `position: relative` stabilized the rendering context
and there was once again peace in the land.
@mattwiebe mattwiebe added [Feature] Full Site Editing [Type] Bug An existing feature does not function as intended labels Oct 29, 2020
Copy link
Contributor

@Addison-Stavlo Addison-Stavlo left a comment

Choose a reason for hiding this comment

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

This restores the previews for me. The old overflow issue with the blockList / non-tabpanel inserter is not present as well. Things look good to me! 🎉

@talldan talldan merged commit a224cbf into WordPress:master Oct 30, 2020
@github-actions github-actions bot added this to the Gutenberg 9.3 milestone Oct 30, 2020
@mattwiebe mattwiebe deleted the fix/block-inserter-previews branch October 30, 2020 16:14
@vindl vindl added this to Done in Full site editing Nov 3, 2020
desrosj added a commit that referenced this pull request Feb 16, 2021
@tellthemachines tellthemachines mentioned this pull request Feb 17, 2021
7 tasks
tellthemachines added a commit that referenced this pull request Feb 17, 2021
* Backport #26475 for the 5.6 branch.

* Backport #28604.

* Revert "Backport #28604."

This reverts commit 32784b6.

* Backport #26583 to the 5.6 branch.

* Commit lock file updates.

* Committing lock file differences after updating `browserslist`.

* Pin the version of NodeJS in the Compressed Size workflow.

* Memoize getEntityRecords to prevent infinite re-renders (#26447)

* Fix issue where gallery block requests all attachments when empty (#28621)

* Return early from building attachments for galleries

* Improve code clarity

* Fix link control styles to prevent scrollbar (#27777)

* Update package-lock

* Update package-lock again

Co-authored-by: Jonathan Desrosiers <desrosj@users.noreply.github.com>
Co-authored-by: Kai Hao <kevin830726@gmail.com>
Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants