Skip to content

Sibling inserter doesn't appear above selected block with no toolbar #7884

Closed

Description

@noisysocks

Describe the bug
The sibling inserter (+) doesn't appear above a block that is selected if the block has no toolbar.

To Reproduce

  1. Insert a paragraph block with text
  2. Insert a More block
  3. With the More block selected, hover your mouse over in the centre area between the Paragraph block and the More block
  4. Notice that sibling inserter doesn't appear.

Expected behavior
The sibling inserter (+) should appear.

Screenshots
inserter

Additional context
This is because we disable :hover on the sibling inserter that is before a selected block. This prevents it from getting in the way when there is a toolbar.

.is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter {
opacity: 0;
pointer-events: none;
&:hover,
&.is-visible {
opacity: 1;
pointer-events: auto;
}
}

To fix this, we would have to update the CSS above to be smart enough to know whether or not there are items in BlockToolbar. This could be awkward since that information is stored in React context.

Came up in #7799.

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    [Feature] InserterThe main way to insert blocks using the + button in the editing interface
    on Jul 11, 2018
  2. noisysocks commented on Jul 11, 2018

    @noisysocks
    MemberAuthor

    Not sure how much of a priority this is.

    @jasmussen @karmatosed – would you mind putting it in a milestone if you think it's worth doing or just closing it if not?

  3. karmatosed commented on Jul 12, 2018

    @karmatosed
    Member

    I think this could annoy some people so let's milestone it.

  4. mtias commented on Oct 23, 2018

    @mtias
    Member

    This seems to be working as expected now.

  5. ZebulanStanphill commented on Oct 23, 2018

    @ZebulanStanphill
    Member

    @mtias Since all blocks have toolbars now due to the ellipsis menu being moved there, the original intent of this ticket doesn't really make sense anymore. There are no blocks without toolbars. So yeah, it is working as expected, but what the issue wanted to accomplish has not been done, though it is now not really feasible anymore.

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

    [Feature] InserterThe main way to insert blocks using the + button in the editing interface[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions