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

Changing top and bottom causes "custom html" blocks to be uneditable #14071

Closed
jeiseman opened this issue Feb 24, 2019 · 1 comment
Closed

Changing top and bottom causes "custom html" blocks to be uneditable #14071

jeiseman opened this issue Feb 24, 2019 · 1 comment
Labels
[Block] HTML Affects the the HTML Block Needs Technical Feedback Needs testing from a developer perspective.

Comments

@jeiseman
Copy link

Describe the bug
Reducing the top and bottom margins of blocks causes the "custom html" blocks to be uneditable.
The problem shows up in all blocks but is more severe in the "custom html" blocks. You can see from the following screenshot that even for paragraph blocks the first block is interfering with the second block:
https://cl.ly/4bff581651a0

To Reproduce
Steps to reproduce the behavior:

  1. Create a post containing two "custom html" blocks with a single line of html in each one.
  2. Add the following custom css to the admin block-editor.css
    .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit { margin-bottom: 10px; margin-top: 10px; }
  3. Try to edit the first of the two "custom html" blocks.

You will find that you can't edit the first block.

Desktop (please complete the following information):

  • OS: Windows 10
  • chrome
  • Version 72

Additional context

  • WordPress 5.1
@jorgefilipecosta jorgefilipecosta added the Needs Technical Feedback Needs testing from a developer perspective. label Feb 25, 2019
@gziolo gziolo added the [Block] HTML Affects the the HTML Block label May 24, 2019
@gziolo
Copy link
Member

gziolo commented May 24, 2019

It's duplicate of #12577 and it's an issue even when you don't change margins at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] HTML Affects the the HTML Block Needs Technical Feedback Needs testing from a developer perspective.
Projects
None yet
Development

No branches or pull requests

3 participants