-
Notifications
You must be signed in to change notification settings - Fork 11
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
Move Paragraphs item action buttons to top right in a drop-down style. #62
Comments
During Backdrop LIVE recently @quicksketch also "thought out loud" about the new modal administration being used in the back end to eliminate the inline forms that get messy so quickly -- just display a non-editable "preview" slice of each Paragraphs item (which can be sorted) and an associated "Edit" button that loads the edit fields in a modal. |
I think those suggestion would be good. |
@laryn , let me know where is good start to move forward to implement these features |
@irinaz If you look where those buttons are added, you can start a branch/PR for this ticket and test out converting them to Backdrop's "dropbutton" format. Look at |
@laryn , starting here paragraphs/paragraphs.field_widget.inc Line 528 in 1589912
|
The hitch is that the There's a fuller answer here: https://stackoverflow.com/questions/18026951/drupal-ajax-call-from-click-of-a-link-in-form By the way, it seems like we should add |
Here's an incremental improvement by moving the buttons to the top right #179. I added some classes to make it easier to theme. In a second iteration, perhaps some fancier button dropdown could happen, though I think this already improves things for our purposes. |
@herbdool , this is terrific! Does this change include "collapse all / open all" or that should be separate change? thanks again! |
@irinaz it only includes what I mentioned above. No secret features. Expand/collapse all is unlikely to happen soon since it isn't easy to implement. Requires triggering all the ajax callbacks at once. |
Thank you for clarification and for adding new styling for buttons!! |
Thanks @herbdool -- I took a quick look and do think this is an improvement. I'll try to review more thoroughly next week. I also looked at D10 enough to see that they're doing something similar to what you described in terms of fancy dropdown build around buttons (although not using details for it). Maybe we could pull something from their implementation. |
@laryn good idea of looking how they do it. I would still use My PR is a bit of a POC. I wondered about wrapping the title and the buttons in a div as well to make it more robust. |
I've got something closer to extra actions menu: Maybe there should be a separate issue for the buttons instead of this issue, since this one is more of a META issue. I don't feel like working on everything on this list - spent too much time on this one thing already. |
It's already there @herbdool: https://docs.backdropcms.org/form_api#operations
I've created this core issue to request that: backdrop/backdrop-issues#6594 ...I did my best to describe the need, but you might wanna have a look and tweak the issue title and summary, as you have more context. |
@herbdool I like the alternate PR that makes the dropdown. I want to look into a bit of styling on Gin before I release it, and had a question for your opinion on styling for Seven. Here's the PR: And here's my tweak for discussion, attempting to stick closer to Seven's border width for consistency. What do you think? |
I'm also wondering if clicking the |
@laryn I changed the css to make the border thicker. For some reason the JS is interfering with clicking the details closed from the details summary (works when I comment the JS out). I haven't figured out yet how to make that work better. Interesting thing is that github has the same issue - try it with the three dots on the top right of a comment. |
@herbdool On Github, it seems like if you hover exactly over one of the three dots and they turn blue, then it will close it. That's probably not ideal. 😆 |
@laryn I'm a bit at a loss. Can we just say good enough for now? |
@herbdool I'm taking a look. Did you push the CSS changes for border width? |
@laryn now it's up. I forgot to push it. |
@herbdool I'm going to push a PR to your branch to see if you're okay with some changes: |
@irinaz I'm not quite ready to make a release but hopefully relatively soon. In the meantime update manually or use the dev code. |
This issue is solely for moving the actions on a Paragraphs item into the top right in a drop-down button style (though not necessarily a literal dropdown button). The D7 issue this started from is below, but any additional aspects desired from that D7 issue would need separate issues filed.
This is an issue from the Drupal 7 queue that is marked "Needs Review" and could improve the UI.
https://www.drupal.org/project/paragraphs/issues/2476253
The text was updated successfully, but these errors were encountered: