Skip to content

Conversation

@thelovekesh
Copy link
Collaborator

@thelovekesh thelovekesh commented Mar 21, 2023

Summary

As discovered in #7471 (comment), updated usage(in 7996b3a) for p.has-background(if font-size is xxl) is breaking other elements with p.has-background. This PR ensures that margins only get updated if p.has-background is a descendant of .amp-wp-article-content.

Before:
image

After:
image

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).

…-article-content`

- Update style.php in legacy theme
@github-actions
Copy link
Contributor

github-actions bot commented Mar 21, 2023

Plugin builds for 3af490b are ready 🛎️!

@thelovekesh thelovekesh requested a review from westonruter March 21, 2023 16:41
@thelovekesh thelovekesh added this to the v2.4.1 milestone Mar 21, 2023
Copy link
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

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

This fixes the specific issue, but we'll need to revisit a more holistic approach to ensure block styles are applied properly in Legacy.

@westonruter westonruter merged commit 510f89f into develop Mar 21, 2023
@westonruter westonruter deleted the fix/reader-mode/group-block branch March 21, 2023 17:05
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelogged Whether the issue/PR has been added to release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants