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

Revert #20658 due to issues with image placement and selection #21160

Closed
wants to merge 1 commit into from

Conversation

roo2
Copy link
Contributor

@roo2 roo2 commented Mar 26, 2020

We deployed Gutenberg 7.7.1 to live sites and had reports of issues with image selection from users, github issues:

#21152
#21114

I tracked it down to being introduced by #20658

I wasn't able to quickly solve the issue surgically, so for now I would like to revert the entire changeset. I'm currently testing the revert locally and all seems fine, it looks like the commit was refactoring and other code hasn't built on top of it yet 😄

Description

Reverts #20658

How has this been tested?

Currently going through the affected elements and testing their behaviour WRT positioning and selectability. It fixes the image issues originally identified:
images-alignment

I Created a test of blocks that may have been affected:

  • Paragraph
  • Heading
  • Columns
  • List

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

fixes #21152, fixes #21114

@roo2 roo2 changed the title Revert #20658) due to issues with image placement and selection Revert #20658 due to issues with image placement and selection Mar 26, 2020
@youknowriad
Copy link
Contributor

It would be good to try to understand the difference in markup causing this issue. There's already some PRs building on top of this change. Notably #20721

@ellatrix
Copy link
Member

I don't like that we're reverting this. Let's at least try to fix the issues first.

Copy link
Member

@ellatrix ellatrix left a comment

Choose a reason for hiding this comment

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

Ok, allow me some time to investigate. :)

@ellatrix ellatrix mentioned this pull request Mar 26, 2020
6 tasks
@roo2
Copy link
Contributor Author

roo2 commented Mar 27, 2020

Ahh yep I see the more thorough fix 21167, maybe I was a bit hasty to make this the other night :)

@roo2 roo2 closed this Mar 27, 2020
@roo2 roo2 deleted the fix/image-selection-issues branch March 27, 2020 07:15
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.

Resized center-aligned images do not appear centered in the editor. Can't select aligned images
3 participants