-
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
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. |
@@ -200,13 +207,15 @@ export default function PostStatus() { | |||
variant="tertiary" | |||
size="compact" | |||
onClick={ onToggle } | |||
icon={ postStatusesInfo[ status ]?.icon } | |||
iconSize="20" |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
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 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
icon
next to the post status.Testing Instructions
Screenshots or screencast