-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 drop zone has no background color #8115
Comments
Tested and confirmed with the following steps:
Result: the dropzone notice that appears when an image is dragged over the top of a paragraph block is hard to read. Seen at http://alittletestblog.com/wp-admin/post.php?post=14036&action=edit running WordPress 4.9.7 and Gutenberg 3.3.0 using Firefox 61.0.1 on macOS 10.13.6. |
Hello, what should be the best fix, change the background of the DropZone component? example change it to black? |
The DropZone has a blue background color, but it's overridden by an other component. |
I am reopening this as it was added without a design review. We need to now focus on getting this fixed up, we can but in future let's make sure we do before commits. @jasmussen is going to be amazing and work on a design solution - thanks for taking this on ❤️ |
This PR is a followup to #8752, and fixes #8115. It is the situation in `master` right now that every single block has instructional overlay text when dragging files from the desktop over it. This also means very short paragraphs, separators, lots of different blocks that can neither fit the upload message, nor can really _accept_ any uploads. That last part is key, because we also have a different upload indicator — the blue horizontal line. This indicator shows _where the block you're about to drop will be inserted_. Because you can drop an image file on top of a paragraph, but it will show up either _before_ the paragraph, or _after_ the paragraph, not _inside_ it. Therefore, the upload message should not be present on top of every single block. In fact it should be present only on placeholders and galleries, where dropping a file on the block itself really _does_ insert the dropped file there.
* Fix issues with drag and drop over text This PR is a followup to #8752, and fixes #8115. It is the situation in `master` right now that every single block has instructional overlay text when dragging files from the desktop over it. This also means very short paragraphs, separators, lots of different blocks that can neither fit the upload message, nor can really _accept_ any uploads. That last part is key, because we also have a different upload indicator — the blue horizontal line. This indicator shows _where the block you're about to drop will be inserted_. Because you can drop an image file on top of a paragraph, but it will show up either _before_ the paragraph, or _after_ the paragraph, not _inside_ it. Therefore, the upload message should not be present on top of every single block. In fact it should be present only on placeholders and galleries, where dropping a file on the block itself really _does_ insert the dropped file there. * Avoid showing the drop zone text on paragraph Block DropZoneswq
Describe the bug
When I drag an image inside an paragraph, I see a drop-zone text, but can't read the text, because the background color is missing. The background in
editor/components/block-drop-zone
now overridespackages/components/drop-zone
, maybe introduced in #7640.Screenshots
The text was updated successfully, but these errors were encountered: