-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Post Comments: Add some basic CSS to the post comments block #30382
Conversation
Size Change: +327 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
.comment-author { | ||
.avatar { | ||
float: left; | ||
margin-right: 10px; |
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.
Should we use 1em here instead?
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.
The recent columns block has a margin-right: .75em;
🤔 https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/latest-comments/style.scss#L43
No matter what is decided, I think they should match.
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.
The avatar shape and size are also different 🤔
Nice little improvement 👍 👍 |
@@ -0,0 +1,33 @@ | |||
|
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.
Nit
This is definitely an improvement — I see all of the same minor errors about Reply link spacing and bullets that @carolinan noted above. This seems like a weird half-way step to me though. Block-based themes will still likely need to refine these styles via CSS. I still recommend we mirror the styles from the Latest Comments block for a more polished default. Is there a reason we're not doing that? |
* Add baseline styles for post comments. * Initial styles. * Blank Canvas Blocks: Add button styles for the Post Comments block Reply link * Remove widths because of WordPress/gutenberg#30382 * Reset borders and cursor for form inputs. * Move to border and cursor reset to button mixin. * Remove addition to button mixin. * Rebase. Co-authored-by: Danny Dudzic <[email protected]>
32bd645
to
e9b3d62
Compare
56c807f
to
4779386
Compare
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.
Looks good to me, thank you. This will work well until we can complete the comment query and related blocks.
Description
This adds some basic CSS to the Post Comments block, so it doesn't look broken. Fixes #26864
How has this been tested?
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).