-
Notifications
You must be signed in to change notification settings - Fork 360
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
Blockbase: Implement Comment Block and removed CSS #6080
Conversation
Additionally: So too could child themes take advantage: geologist, mayland-blocks, meraki, quadrat, videomaker, zoologist Lastly quite a few non-blockbase themes could also be updated. However I expect those can be taken care of in a separate change. |
There are a few font sizes I think look better in the previous one:
However, the spacing between the form's field names and the fields looks much better in the new one 👍 |
I agree that we should make this bit of code reusable, but should it be a pattern instead of a template part? Are we doing this for the users or for our convenience? |
I went back and forth. I think this shouldn't be a pattern (at least not yet) until we can leverage the forms block. Until we do achieving the target design will require some CSS and don't think we should do that for patterns but I feel more OK about it for templates. If we're keen to lose that smattering of CSS to change the font sizes it could be a pattern. At the moment I'm doing it 100% for our convenience. Which might not be the right move but that was my motivation. :P |
Then make it a hidden pattern? |
If it's something that can be done within the editor, go for it! but if we need extra CSS I'd say avoid it. I don't think visual changes are so important here since it's not something so prominent for a site's design like say a header or another block that is part of the layout of a site. Also, extra CSS on a block that can be edited by the user can lead to weird interactions in the editor. |
I was able to achieve the design (mostly) by using the FSE. I notice that the I've also converted it into a (hidden) pattern. The only CSS dependency is on the form so once that is gone I think we can un-hide that pattern. |
I've opened a Gutenberg issue regarding the font-size of the date here. |
I think this change looks dandy, especially now that this has landed. Marking this as ready for 3.0 |
8ff1a4e
to
ec1f33c
Compare
Refactor/blockbase color admin (#6043) Moved templates from old folder location to new (#6073) Blockbase: Implement the Button elements API (#6041) Blockbase: Implement Comment Block and removed CSS (#6080) Fix/migrate blockbase font self hosted (#6123) Blockbase children: update comments block (#6153) Blockbase: Changed the trigger to render social icons (#6079) Blockbase: move button padding styles from ponyfill to theme.json (#5901) Co-authored-by: Grant Kinney <[email protected]> Co-authored-by: Jeremy Yip <[email protected]> Co-authored-by: MaggieCabrera <[email protected]> Co-authored-by: madhusudhand <[email protected]>
Closing: Work merged in #6167 |
Changes proposed in this Pull Request:
This PR implements the new comments block. I didn't add extra CSS to make it look like the old comments block and left it simple. It will be a "regression" from the previous version of the theme but since this is more of an utility block than one used for layout or design I think that's ok. Also having this on the 3.0 release of the theme makes sense if we are making a bit of a design change. The extra CSS was already causing issues on dotcom.
@beafialho I'd like your thoughts too.
Before:
After:
Heads up: the comment form part of the block is not yet editable via the editor, that will change in the future and we can revisit that part of the block.
Related issue(s):
Closes #5833
Closes #5847