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

Twenty Sixteen: Image Block Alignment Error (Left/Right) #7962

Open
rosepajaroja opened this issue Jul 19, 2024 · 3 comments
Open

Twenty Sixteen: Image Block Alignment Error (Left/Right) #7962

rosepajaroja opened this issue Jul 19, 2024 · 3 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Platform] Atomic [Platform] Simple [Pri] Low [Pri] Normal [Status] Core fix needed This issues is coming from a bundled theme (Twenty Something)) core and is being addressed in trac. Triaged [Type] Bug Something isn't working

Comments

@rosepajaroja
Copy link

Quick summary

We're seeing issues with the image alignment, as shown in the screenshots below. It seems that both the image and caption have a margin-left: -40%; in the CSS code, which is causing the problem. This seems to be only happening on Twenty Sixteen. I tested Twenty Fifteen, Twenty Fourteen, and Twenty Seventeen, but the issue is not present to these other themes.

CleanShot 2024-07-19 at 20 42 12@2x

CleanShot 2024-07-19 at 20 41 59@2x

CSS code that seems to be causing the issue:

CleanShot 2024-07-19 at 20 43 02

Steps to reproduce

  1. Add a new post through this path: My Site → Posts → Add New
  2. Add texts with "Paragraph" block.
  3. Add an image with "Image" block.
  4. Resize the image, and change alignment to either right or left.
  5. Save and preview to see the issue on the live page or preview.

What you expected to happen

I will see the image alignment correctly on the live/preview page.

What actually happened

The image is slightly shifted to the left, causing text to overlap with the image when right-aligned, and creating a larger gap between the text and the image when left-aligned.

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

Available workaround:

Add this CSS code:

figcaption, img {
      margin-left: 0px!important;
}
@rosepajaroja rosepajaroja added [Type] Bug Something isn't working Needs triage labels Jul 19, 2024
@mrfoxtalbot mrfoxtalbot added the [Status] Core fix needed This issues is coming from a bundled theme (Twenty Something)) core and is being addressed in trac. label Jul 22, 2024
@mrfoxtalbot
Copy link

Nice catch and great report, @rosepajaroja. Thank you!

I re-tested this and I can replicate it in core. Because it is a bundled theme, I opened an issue in track https://core.trac.wordpress.org/ticket/61723

@mxhassani
Copy link

Another one: 8651326-zen

Copy link
Contributor

Support References

This comment is automatically generated. Please do not edit it.

  • 8651326-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Platform] Atomic [Platform] Simple [Pri] Low [Pri] Normal [Status] Core fix needed This issues is coming from a bundled theme (Twenty Something)) core and is being addressed in trac. Triaged [Type] Bug Something isn't working
Projects
Development

No branches or pull requests

3 participants