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

Block List: Reenable pointer events on insertion point hover #7642

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

aduth
Copy link
Member

@aduth aduth commented Jun 29, 2018

Alternative to #7530

This pull request seeks to resolve the issue with sibling inserter on FIrefox / Safari. The issue was that we make reenable visibility (opacity) of the insertion point on hover, but there are also pointer-events: none which were not also being reset on :hover. Not sure why the pointer-events are being reset in the first place.

Testing instructions:

Repeat testing instructions from #7530

@aduth aduth added the [Feature] Inserter The main way to insert blocks using the + button in the editing interface label Jun 29, 2018
@aduth aduth requested review from tofumatt and jasmussen June 29, 2018 18:27
@jasmussen
Copy link
Contributor

I don't understand how this fixes it, but if it does, holy guacamole is it prettier. I can't test now so if you'd like this in fast, feel free to expand the review range. 🎉

Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

I still don't understand how this fixes it, but I can confirm this fixes it for me in Firefox and Safari. Given it's so much prettier, ship it as fast as you can :)

Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

Nice!

more-red-than-green

🚢

@@ -744,6 +744,7 @@
opacity: 0;
pointer-events: none;

&:hover,
Copy link
Member

Choose a reason for hiding this comment

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

I tested this with the keyboard too and it worked, just FYI.

Cool thought, I wish I thought of this!

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.

3 participants