Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The goal here is to move remove button inside the collapsible button with other actions, and to move edit outside of it. There are multiple reasons for this:
- X icon is mostly used as a "cancel" action and using it here as a delete can be misleading;
- After clicking on "Edit" paragraph, it makes sense that the "Edit" icon is in focus, and that other icons are inside collapsible menu.
Now that #2829316: Implement "duplicate paragraphs" feature is committed, we should proceed to work on the changes on the collapsible button. Screenshot will be added.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-2850026-8-9.txt | 4.72 KB | toncic |
#9 | collapsible_menu_ux-2850026-9.patch | 5.73 KB | toncic |
#8 | interdiff-2850026-6-7.txt | 2.31 KB | toncic |
#8 | collapsible_menu_ux-2850026-7.patch | 6.18 KB | toncic |
#6 | interdiff-2850026-3-6.txt | 1.56 KB | toncic |
Comments
Comment #2
toncic CreditAttribution: toncic at MD Systems GmbH commentedComment #3
toncic CreditAttribution: toncic at MD Systems GmbH commentedI did some changes and there is a screenshot how is looking now.
Comment #4
drobnjak CreditAttribution: drobnjak at MD Systems GmbH commentedSpace missing.
This line shouldn't be in if statement.
Comment #5
drobnjak CreditAttribution: drobnjak at MD Systems GmbH commentedWe shouldn't remove height and width properties here. Also here we are targeting button with the parent container, not container itself.
Comment #6
toncic CreditAttribution: toncic at MD Systems GmbH commentedDid small changes from previous comments.
Comment #8
toncic CreditAttribution: toncic at MD Systems GmbH commentedFixing test failing.
Comment #9
toncic CreditAttribution: toncic at MD Systems GmbH commentedWhen I was checking previous patch I noticed that I am adding remove button twice. I changed that, and now is looking much better.
Comment #10
drobnjak CreditAttribution: drobnjak at MD Systems GmbH commentedApplied patch and tested. Works as it is defined in the issue. I will add follow-ups for this.
Comment #11
miro_dietikerI can't see the Duplicate button anymore ... Strange, i also can't see it without this change...
The issue was committed before! :-!
Comment #13
miro_dietikerOK, i checked wrong widget.
Committed as a small step.
Still, i'm confused why i still can only duplicate a paragraph when closed. When i switched to edit, the action is gone. Needs an update or follow-up. Close when created.
Comment #14
drobnjak CreditAttribution: drobnjak at MD Systems GmbH commentedDuplicate issue is still on "Needs work". Follow-ups will be added there. Closing this issue.
Comment #15
drobnjak CreditAttribution: drobnjak at MD Systems GmbH commentedAdding "duplicate" feature follow-up.