Skip to content

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

Closed

Description

@kjellr

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

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Sep 17, 2018
  2. youknowriad commented on Sep 18, 2018

    @youknowriad
    Contributor

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

  3. kjellr commented on Sep 18, 2018

    @kjellr
    ContributorAuthor

    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.
  4. youknowriad commented on Sep 18, 2018

    @youknowriad
    Contributor

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

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

  5. added
    [Block] CoverAffects the Cover Block - used to display content laid over a background image
    [Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later
    on Nov 12, 2018
  6. jorgefilipecosta commented on Mar 11, 2019

    @jorgefilipecosta
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] CoverAffects the Cover Block - used to display content laid over a background image[Feature] BlocksOverall functionality of blocks[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions