-
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
[Data Views]: Remove separator in item actions #59822
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 Change: -45 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in af8be87820068a24d9f5e1693f55f65dee6ee383. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8264528733
|
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 Nik, this works well for me. It's good to see 'Delete' as the last item :)
In the future we may need to re-introduce separators, but I think it's quite likely their placement will be contextual to the post type in question, and tricky to systematise. So this seems good to merge.
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.
🚢
af8be87
to
10288c4
Compare
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: mcsf <mcsf@git.wordpress.org>
What?
This PR removes the separator in item actions dialog and since we show both primary and secondary actions there, we can refactor the code a bit.
Additionally, the
delete
is now rendered at the bottom of the dialog to reduce its prominence. In the future we'll probably need some grouping of actions in a contextual way, but not for now.Testing Instructions
Delete
action is at the bottom of the dialog