-
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 Excerpt block: Added icon and description to Post Excerpt block #24203
Conversation
Size Change: +1.01 kB (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
I updated the excerpt description to read, "Display a post's excerpt." |
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.
This looks good. I think the description is short and sweet. I do have some minor things for you to look into on the icon and then it's good to go. Nice work!
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z" | ||
fill="#1E1E1E" |
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 would remove this fill.
import { Path, SVG } from '@wordpress/primitives'; | ||
|
||
const postExcerpt = ( | ||
<SVG fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
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.
Remove this fill as well. (The fills are defined in the CSS so no need here)
<SVG fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> | ||
<Path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" |
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'm not sure about these clip and fill rules. I don't really know if they are needed.
Description
Added icon and description to Post Excerpt block.
How has this been tested?
Tested locally.
Screenshots
Types of changes
Non-breaking changes.
Checklist: