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 'Add language' form uses no actions wrapper for its submit buttons. This results in inconsistent theming:
Proposed resolution
Use an 'actions' wrapper for theming consistency.
Consistently apply this to any other entity forms
Remaining tasks
- identify additional entity forms that don't use actions for their buttons
- patch to add them
User interface changes
The theming for forms is consistent in all entity forms
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#26 | After2.png | 51.08 KB | mohit1604 |
#26 | After1.png | 30.48 KB | mohit1604 |
#26 | Before2.png | 50.96 KB | mohit1604 |
#25 | Before1.png | 30.27 KB | mohit1604 |
#21 | use_actions_wrapper_on_add_language_form_for_theming_consistency-2459547-21.patch | 2.03 KB | idebr |
Comments
Comment #1
idebr CreditAttribution: idebr commentedScreenshot after:
Screenshot after (custom language...):
Comment #2
LewisNymanLooks like we are missing a patch?
Also see: #2160621: Button spacing CSS is too fragile
Comment #3
idebr CreditAttribution: idebr commented@LewisNyman Doh! Let's see if the patch still applies
Comment #4
idebr CreditAttribution: idebr commentedComment #8
pivica CreditAttribution: pivica commentedChecking this.
Comment #9
pjbaertI rerolled the patch.
The changes still look good.
Noticed that the color of the 'add language' & 'add custom language' buttons is different. But this is something we probably shouldn't fix in this patch?
Comment #15
idebr CreditAttribution: idebr commentedComment #16
idebr CreditAttribution: idebr commentedComment #17
idebr CreditAttribution: idebr at ezCompany commentedReroll against 8.4.x
Comment #19
idebr CreditAttribution: idebr at ezCompany commentedComment #21
idebr CreditAttribution: idebr at ezCompany commentedComment #23
mohit1604 CreditAttribution: mohit1604 as a volunteer commentedComment #24
mohit1604 CreditAttribution: mohit1604 at Google Summer of Code commentedThanks @idebr for working on this issue.
This Patch is for version 8.5.x .
Comment #25
mohit1604 CreditAttribution: mohit1604 at Google Summer of Code commentedBefore applying patch
After applying patch
Comment #26
mohit1604 CreditAttribution: mohit1604 at Google Summer of Code commentedUploading again all the remaining screenshots ! Don't know why it wasn't attached with previous comment !
Comment #28
mohit1604 CreditAttribution: mohit1604 at Google Summer of Code commentedAdding test for 8.6.x in patch #24.
Comment #29
mohit1604 CreditAttribution: mohit1604 at Google Summer of Code commentedComment #30
star-szrThanks all for the work here so far.
The scope feels too small (https://www.drupal.org/core/scope#incomplete). If we do update this, we should try to update other cases like this as well if consistency is the name of the game. For example \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection has some buttons (only show up with JS disabled - can be seen at
/admin/structure/types/manage/article/fields/node.article.field_tags
on standard profile) that look like this too. forms system might not be quite the right component but it's a start. I didn't search exhaustively through core but found that example pretty quickly.Patch from #21 still applies so the patch from #24 wasn't necessary. @mohit1604 thanks for all the testing, I'm going to interpret the RTBC as being for the patch in #21 (please don't RTBC your own patches).
Comment #31
idebr CreditAttribution: idebr at iO commented#30 @Cottser It took 3 years to get a patch for a single form to RTBC. Per your comment this issue would have to identify and chase every form in HEAD, so I'll pass
Comment #33
borisson_I agree with #31, we should get in what we can right now and open a new followup to find and fix the other remarks. Since this issue has already taken so long to finish, I hope we can reverse that decision and can commit #24.
Comment #40
larowlanAdded issue summary update
I feel like this is a task too