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

Style Book: fix comment output in styles #66439

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

stokesman
Copy link
Contributor

@stokesman stokesman commented Oct 25, 2024

What?

Removes a JS comment that is output in the Style Book styles. It looks like this came about in #65430.

Why?

The comment prevents the adjacent ruleset from applying.

How?

Keeps the comment yet moves it out of the styles string.

Testing Instructions

  1. Open the Style Book
  2. Inspect a .root-container element
  3. Verify its computed display is flow-root

Screenshots or screencast

In case it helps illustrate the issue and how it can be verified in trunk here’s a demo showing it. The root-containers are given a background color and the paragraph some margins so it’s visible when they become contained.

style-book-non-flow-root-root-container.mp4

@stokesman stokesman added [Type] Bug An existing feature does not function as intended [Feature] Style Book labels Oct 25, 2024
@stokesman stokesman requested a review from ramonjd October 25, 2024 03:52
Copy link

github-actions bot commented Oct 25, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: stokesman <[email protected]>
Co-authored-by: ramonjd <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@stokesman stokesman changed the title Style Book: Fix comment output in styles Style Book: fix comment output in styles Oct 25, 2024
Copy link
Member

@ramonjd ramonjd left a comment

Choose a reason for hiding this comment

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

Oh wow! Good spotting.

Thanks for fixing.

LGTM

Screenshot 2024-10-25 at 3 53 45 pm

@stokesman stokesman merged commit cf4aa6f into trunk Oct 25, 2024
69 of 70 checks passed
@stokesman stokesman deleted the fix/style-book-root-container-ruleset branch October 25, 2024 14:51
@github-actions github-actions bot added this to the Gutenberg 19.6 milestone Oct 25, 2024
karthick-murugan pushed a commit to karthick-murugan/gutenberg that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Style Book [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants