-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
add comment-form block styles #27673
Conversation
I would rather say that it's an issue with the block that it assumes that CSS from another block exists on the page. |
I agree. But at the time it made sense since everything was in the same stylesheet... |
Is is a lot of styles to copy and paste? I personally would be in favor of doing that and scoping those styles to this block. |
Fair point... Done in a4a41d5 👍 |
Size Change: +234 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be also listed as import in the main SCSS file in the block library package. Well, at this moment maybe it's unnecessary but it might change one day 😅
To clarify my previous comment, I was referring to this file: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/style.scss |
Good catch! Done 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for revisions added 💯
Description
The post-comment-form block depends on the block button's styles. After #25220 got merged, FSE themes will not load the button block's styles unless a button block exists on the page.
This PR adds the button block's styles to the comment form.
Note: This is a less-than-ideal solution. Ideally we'd be able to have style dependencies and the ability to load multiple stylesheets as outlined in #27671.
Screenshots
Before:
After:
Types of changes
Defined
wp-block-button
as the stylesheet handle for thepost-comment-form
block.Checklist: