Skip to content

Inserter: Remove margin from initial insertion point#5295

Merged
aduth merged 1 commit intomasterfrom
fix/between-inserter-misalign
Feb 28, 2018
Merged

Inserter: Remove margin from initial insertion point#5295
aduth merged 1 commit intomasterfrom
fix/between-inserter-misalign

Conversation

@aduth
Copy link
Copy Markdown
Member

@aduth aduth commented Feb 27, 2018

Related: #5198 (comment)
Related: #5282

This pull request seeks to resolve a misalignment which occurs for the initial block in a block list, both for the top-level block list and in a nested context. From what I can discern from the styling, the negative margin is redundant with the negative relative positioning, and causes the first block to move upward in its entirety. The affected styling only impacts the very first insertion point, as others will not qualify for the child selector of .editor-block-list__layout.

Testing instructions:

Verify that when clicking in the writing prompt, the vertical positioning of the text aligns with where the writing prompt had been shown.

@aduth aduth added the [Feature] Inserter The main way to insert blocks using the + button in the editing interface label Feb 27, 2018
@aduth aduth added this to the 2.3 milestone Feb 27, 2018
@aduth aduth requested a review from youknowriad February 27, 2018 21:09
Copy link
Copy Markdown
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@aduth aduth merged commit 0bbd587 into master Feb 28, 2018
@aduth aduth deleted the fix/between-inserter-misalign branch February 28, 2018 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Inserter The main way to insert blocks using the + button in the editing interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants