-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow dragging-and-dropping images from the inserter to image blocks #49673
Changes from all commits
9f33ff0
0cd94b0
c5be4cf
85575fb
122b41a
5fc14ff
4e01c12
0943947
43b4427
a3aa587
4f1cf35
b14e43c
79fe371
3e84325
1f13435
3a9fe9f
f089974
e2eddff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,6 @@ figure.wp-block-gallery { | |
// See https://github.com/WordPress/gutenberg/pull/10358 | ||
|
||
display: block; | ||
&.has-nested-images { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will have some unexpected side effects, unfortunately. Namely it will no longer be possible to drag between two image blocks when the gap is zero. We'll have to determine which is the better trade-off, and what potential other options we have to solve this. |
||
.components-drop-zone { | ||
display: none; | ||
pointer-events: none; | ||
} | ||
} | ||
|
||
> .blocks-gallery-caption { | ||
flex: 0 0 100%; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,16 @@ | |
|
||
- `CheckboxControl`, `CustomGradientPicker`, `FormToggle`, : Refactor and correct the focus style for consistency ([#50127](https://github.com/WordPress/gutenberg/pull/50127)). | ||
|
||
### Breaking Changes | ||
|
||
- `onDragStart` in `<Draggable>` is now a synchronous function to allow setting additional data for `event.dataTransfer` ([#49673](https://github.com/WordPress/gutenberg/pull/49673)). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, this is a breaking change, but I think it actually fixes a bug so it might not be that impactful. c.c. @ciampo if you think this is acceptable :). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, still catching up through the notifications pile. Sounds good to me! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably add a dev note for this change, though. I've added the GH label |
||
|
||
### Internal | ||
|
||
- `NavigableContainer`: Convert to TypeScript ([#49377](https://github.com/WordPress/gutenberg/pull/49377)). | ||
- `ToolbarItem`: Convert to TypeScript ([#49190](https://github.com/WordPress/gutenberg/pull/49190)). | ||
- Move rich-text related types to the rich-text package ([#49651](https://github.com/WordPress/gutenberg/pull/49651)). | ||
- `SlotFill`: simplified the implementation and removed unused code ([#50098](https://github.com/WordPress/gutenberg/pull/50098) and [#50133](https://github.com/WordPress/gutenberg/pull/50133)) | ||
- `SlotFill`: simplified the implementation and removed unused code ([#50098](https://github.com/WordPress/gutenberg/pull/50098) and [#50133](https://github.com/WordPress/gutenberg/pull/50133)). | ||
|
||
### Documentation | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to retain the former behavior of asynchronous
onDragStart
before. I also changedsetTimeout
torequestAnimationFrame
to better describe the intent.