Skip to content

Always visible appender is inconsistently visible, causing visual offsets #16221

Closed

Description

@jasmussen

#15864 changed the behavior of when the side inserter is showing. But it is showing inconsistently, and in many nesting situations the presence makes things offset. Here's a simple example:

appender

That's a list (i.e. not paragraph) transformed into a group. Suddenly there's a blank space in the editor that won't be there on the frontend.

This is also the case in other blocks that support nesting, such as Cover, Columns, Media & Text: if the last block isn't a paragraph, there's an empty space.

Here's a columns block with three images:

Screenshot 2019-06-19 at 10 01 58

Activity

  1. added
    Needs Design Feedback
    on Jun 19, 2019
  2. ZebulanStanphill commented on Jun 22, 2019

    @ZebulanStanphill
    Member

    Related: #13571.

  3. richtabor commented on Jul 2, 2019

    @richtabor
    Member

    I second this here. The inserter within the Group block should perform as the inserter within the singular Column block does. One change would be that the inserter returns when you're selected on a block.

    Otherwise, the Group block within the editor does not properly resemble the front-end when you're not interacting with it.

  4. jasmussen commented on Jul 3, 2019

    @jasmussen
    ContributorAuthor

    The reason for adding this trailing inserter to nesting containers makes sense in principle, but I wonder if we can tweak the behavior so it's invisible until the block itself is selected?

    Something along the lines of this:

    .block-editor-block-list__block .block-editor-default-block-appender + .block-editor-default-block-appender {
    	display: none;
    
    	.is-selected & {
    		display: block;
    	}
    }
    

    The idea being that this leans into the principle of the unselected block is a preview, whereas the selected block can have additional UI.

  5. added a commit that references this issue on Jul 8, 2019
    aec75c3
  6. jasmussen commented on Jul 8, 2019

    @jasmussen
    ContributorAuthor

    Created a PR with a fix in #16453.

  7. added a commit that references this issue on Jul 23, 2019
    1ca616a
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

    Needs Design Feedback

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions