Repository navigation
Post Comments Counts: Add style attributes - #24167
Conversation
|
Size Change: +147 B (0%) Total Size: 1.15 MB
ℹ️ View Unchanged
|
Addison-Stavlo
left a comment
There was a problem hiding this comment.
This looks good and works well for me. All concerns are regarding designs that will need to be addressed in the future.
Initially this was a span on the front end, I don't know if this made sense or not. Since we are adding feature parity in comparison with the paragraph block, we probably do want it as a block element. It seems a bit empty as a block element, but perhaps in future iterations we can add a customizable text that can be added before or after the number, so someone could customize the block more like:
This many comments: 0
or
This post has 0 comments!
😆
Yeah, having a custom label (maybe even with a custom |
Description
Update the Post Comments Counts block:
divinstead of aspan.Note: the block simply outputs the number of comments, without labels.
How has this been tested?
Tested in Post, Page, and Site Editor, on Chrome 83 on macOS 10.15.5.
Tested on posts and pages, with comments allowed and otherwise.
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: