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

Expand drop zone to fill the entire block #8722

Closed
wants to merge 3 commits into from
Closed

Expand drop zone to fill the entire block #8722

wants to merge 3 commits into from

Conversation

mjs1994
Copy link

@mjs1994 mjs1994 commented Aug 8, 2018

Description

  1. The background for the drop zone has been restored, this fixes Block drop zone has no background color #8115
  2. Tweaked some values for the dropzone to make it cover the whole block. See screenshots below.

How has this been tested?

This has been tested by dropping an image into a paragraph block.
The testing environment was the docker container included with this repository.
Tested dropping an image onto the other block types and all worked okay.

Screenshots

Before:
https://imgur.com/Kf1h664

After:
https://imgur.com/XBbBOuD

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

Copy link
Contributor

@earnjam earnjam left a comment

Choose a reason for hiding this comment

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

I like the looks of the background filling the whole block. Especially over the classic block.

Let's drop the changes to fix #8115 in favor of PR #8752, but keep the other portion about filling the full block in this PR and I think we can merge it.

@@ -8,14 +8,12 @@
}

&.is-close-to-bottom {
background: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

If we remove this, then it will bring back #6035, where blocks change color when dragging another block over them.

border-bottom: 3px solid theme(primary);
}

&.is-close-to-top,
&.is-appender.is-close-to-top,
&.is-appender.is-close-to-bottom {
background: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same issue here as line 11

@mjs1994
Copy link
Author

mjs1994 commented Aug 10, 2018

Hey, I've just reverted one of the commits, hope this helps 👍

@earnjam
Copy link
Contributor

earnjam commented Aug 15, 2018

Thanks @michaelsmyth94. I like the looks of this, but want to get some design feedback as well and also make sure I'm not missing anything that might break by expanding the drop zone like this. Looks like based on the history it's been set this size for a while. .

@earnjam earnjam added the Needs Design Feedback Needs general design feedback. label Aug 15, 2018
@earnjam earnjam changed the title Update/block drop zone Expand drop zone to fill the entire block Aug 15, 2018
@earnjam
Copy link
Contributor

earnjam commented Aug 21, 2018

I'm going to close this, as it's no longer really applicable after #9071 was merged.

@earnjam earnjam closed this Aug 21, 2018
@earnjam earnjam removed the Needs Design Feedback Needs general design feedback. label Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block drop zone has no background color
2 participants