Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression with Sibling Inserter. #11969

Merged
merged 2 commits into from
Nov 19, 2018

Conversation

jasmussen
Copy link
Contributor

The sibling inserter is the plus you see when you hover between two blocks.

When you have no blocks selected, or use the unified toolbar mode. you can access the sibling inserter between any two blocks.

When you have a block selected, and have the block-affixed toolbars, only the sibling inserter below the selected block should be availabl
e. Though it should still be keyboard accessible.

This PR fixes that.

Before:

before

After:

after

The sibling inserter is the plus you see when you hover between two blocks.

When you have no blocks selected, or use the unified toolbar mode. you can access the sibling inserter between any two blocks.

When you have a block selected, and have the block-affixed toolbars, only the sibling inserter below the selected block should be availabl
e. Though it should still be keyboard accessible.

This PR fixes that.
@jasmussen jasmussen added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release labels Nov 16, 2018
@jasmussen jasmussen added this to the 4.5 milestone Nov 16, 2018
@jasmussen jasmussen self-assigned this Nov 16, 2018
@jasmussen jasmussen requested review from aduth and a team November 16, 2018 10:55
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

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

Hi @jasmussen, this works correctly in most of the cases. The only case where the problem still exists is if spotlight mode is enabled.

image

I think the problem happens because in this mode is-selected class is not added.

@jasmussen
Copy link
Contributor Author

Great catch, thank you Jorge. Pushed a fix for spotlight mode.

@jasmussen jasmussen requested a review from a team November 19, 2018 07:38
@gziolo gziolo added the [Priority] High Used to indicate top priority items that need quick attention label Nov 19, 2018
@oandregal
Copy link
Member

Everything is fine in my testing. Only a small gotcha with the columns block, the inserter for the columns block (not individual columns, but the whole block) is slightly covered by the column block toolbar :

screenshot from 2018-11-19 10-56-56

Copy link
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.

It feels like this inserter is not useful in spotlight mode but probably a separate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants