[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
|
jameskoster
left a comment
There was a problem hiding this comment.
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.
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
deleteis 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
Deleteaction is at the bottom of the dialog