Repository navigation
Add post status icon in post summary - #63658
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| size="compact" | ||
| onClick={ onToggle } | ||
| icon={ postStatusesInfo[ status ]?.icon } | ||
| iconSize="20" |
There was a problem hiding this comment.
Without the iconSize, the row get a bit bigger than the 32px, which is like a min-height for rows. Any better alternatives are welcome.
There was a problem hiding this comment.
It's because .editor-post-panel__row-control .components-button was overriding the height value. Removing that fixed it, but revealed that the 'Parent' button was not the correct size, so I fixed that too.
|
Size Change: +311 B (+0.02%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 0f881de. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9974019925
|
jameskoster
left a comment
There was a problem hiding this comment.
I think this helps give prominence to status which is an important detail. The same icon is used in data views, so this change will increase familiarity.
50bafc4 to
ffcbc48
Compare
What?
Part of the discussion in this issue to make the post status in post summary a bit more prominent.
This PR adds an
iconnext to the post status.Testing Instructions
Screenshots or screencast