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

Fix AMP Carousel caption color and position #6907

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

delawski
Copy link
Collaborator

Summary

Fixes #6734

Captions of images that are part of an AMP Carousel are not getting a correct color and so are hard to read. It turned out that the issue affects not only AMP Carousel but also the core Gallery block (see WordPress/gutenberg#37032).

The solution proposed and used in Gutenberg (WordPress/gutenberg#37033) doesn't work for AMP Carousel since the CSS selectors are different for AMP.

This PR fixes this issue for AMP Carousel.

Check out the before and after on WordPress 5.9 and Twenty Twenty-Two:

Before After
Screenshot 2022-02-10 at 11 38 31 Screenshot 2022-02-10 at 11 38 37

While working on this issue and testing it out on Twenty Twenty-One I noticed that the caption does not stick to the bottom edge of the image, leaving an oddly-looking space. I went ahead and fixed this issue as well (bfd96b3).

WordPress 5.6 and Twenty Twenty-One, Gutenberg inactive:

Before After
Screenshot 2022-02-10 at 11 43 23 Screenshot 2022-02-10 at 11 57 05

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2022

Plugin builds for 636d412 are ready 🛎️!

@westonruter westonruter merged commit aa03ddd into develop Feb 11, 2022
@westonruter westonruter deleted the fix/6734-amp-carousel-caption-color branch February 11, 2022 00:51
westonruter added a commit that referenced this pull request Feb 11, 2022
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Changelogged Whether the issue/PR has been added to release notes. Editor
Projects
None yet
2 participants