-
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 term-description block #29613
Add term-description block #29613
Conversation
Hey Ari 👋 - similar PR opened a few hours ago by @carolinan :#29609. Same comment applies here I think: #29609 (review) and would like your thoughts as well :) |
Size Change: +327 B (0%) Total Size: 1.4 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.
The two pull requests are very similar but since it looks like we are leaning towards this version, please:
- Add text size, line height, text align and color options
- Generate and include the fixtures: https://github.com/WordPress/gutenberg/blob/master/packages/e2e-tests/fixtures/blocks/README.md
Use icon from #27989 (comment)
Done, done and 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.
Thanks for working on this Ari! I've left a couple of comments that should be addressed and we can retest again afterwards.
--cc @jasmussen for some design input about the icon
and placeholder.
I'd be super happy to help with icon work and tweaks and happy to push directly. I have to work on something else for the remainder of the day, though. Got any screenshots? |
Co-authored-by: Nik Tsekouras <ntsekouras@outlook.com>
Thank you for the feedback @ntsekouras! All notes were addressed. 🎉 @jasmussen I used the icon from #27989 (comment) Screenshot with left/center/right aligned blocks, and the icon in use: The placeholder is similar to the one used for content, but some styles (flex) were removed to make alignments work, and also I removed the |
Ah cool, seems like an okay icon for now. About the placeholder text, this is my feeling for the "This is a placeholder for post content" also, we need to do better and be more accurate to the end result. I think there's a longer term opportunity to explore some beautiful prose to pre-fill empty template blocks with, but near term we can still be smarter. It's essentially this field, correct? Given how rare these are filled out, I will admit it's hard to find something inspirational here. How about: "Description for the current term view." Could also just be "Term description." Anything to avoid "This is the placeholder for", basically 😅 |
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.
Took it for another spin. I think it's really close now :)
The text size option in the placeholder works better now. I agree that the extra class name can be removed. |
Changed to |
Thank you for checking!
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.
Thanks for working on this Ari! 🎉
I have only left a comment about the padding. Other than that it's good to 🚢
Description
This PR adds the
term-description
block.Related to #22724
How has this been tested?
Tested in an FSE theme by adding the block in an
index.html
template.Checklist: