Gutenberg: Cover Image: Block toolbar overlaps with inline toolbar when there is a lot of text.

Created on 17 Sep 2018  路  4Comments  路  Source: WordPress/gutenberg

Describe the bug

When a cover image wraps onto many lines (or contains many line breaks), the inline edit toolbar gets obscured by the block toolbar:

screen shot 2018-09-17 at 12 48 15 pm

To Reproduce

  1. Add a cover image block.
  2. Add at least 7 lines of text to it.
  3. Move your cursor over the block, so the block toolbar displays.
  4. See error.

Tested with:
Gutenberg 3.8

Originally reported by @bph

[Block] Cover [Feature] Blocks [Priority] Low [Type] Bug

Most helpful comment

As a side effect of merging nesting in cover block this issue got solved.

All 4 comments

What's the solution, a higher z-index for the inline toolbar?

Almost! But it'll actually need to be just a little more complicated:聽right now, there's no way to dismiss the inline toolbar, which means that if it were above the block toolbar, users would never get a chance to click on the block toolbar items that'd be obscured. 馃槥 Users _can_ remove the blinking cursor from the cover image by clicking outside the text area, but it doesn't hide the controls.

So a complete solution would need to:

  • Adjust the z-index of the inline toolbar so it floats above the block toolbar.
  • Also hide the block toolbar when someone clicks out of the editing field.

Also hide the block toolbar when someone clicks out of the editing field.

I thought it was already the case, must be a regression :)

As a side effect of merging nesting in cover block this issue got solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeveloperWil picture DeveloperWil  路  102Comments

Pikkals picture Pikkals  路  98Comments

maddisondesigns picture maddisondesigns  路  79Comments

mtias picture mtias  路  83Comments

jasmussen picture jasmussen  路  74Comments