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
Enable locale, head to admin/config/regional/translate, and notice that the filter button has more distance between it and other elements than seems necessary.
This may impact other forms, this is just where I happened to notice it.
Proposed resolution
- Get agreement that this should be changed
- If there is agreement to change, determine the change that should be made
- Determine if this impacts other forms
- Impement, check for side effects in other forms
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#21 | 3159892-21.patch | 495 bytes | Gauravvvv |
| |||
#11 | 3159892-11.patch | 501 bytes | phenaproxima |
#11 | 3159892-11-after.png | 41.55 KB | phenaproxima |
#8 | After-patch.png | 120.47 KB | Sakthivel M |
#8 | before-patch.png | 102.13 KB | Sakthivel M |
Comments
Comment #2
mayurjadhav CreditAttribution: mayurjadhav at Srijan | A Material+ Company commentedHi @bnjmnm
Yes we need to change this, Extra padding is added to the filter form action button on Locale translate filter form.
This is completely independent and removing padding will not make any impact on any other forms or action buttons.
Patch is ready with me, once we get the confirmation i'll update here.
Thanks.
Comment #3
kostyashupenkoNot sure, maybe best way here to not just extend original library, but carefully rewrite it from scratch (from Claro only)?
Comment #4
KondratievaS CreditAttribution: KondratievaS at Skilld commentedTested patch from #3 for mobile and desktop resolutions in Chrome, FF, Safari and IE browsers. Result is OK
Comment #6
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied the patch #3 on 9.2.x and it works fine.The whitespace is reduced after this patch.Adding screenshots below.
Before patch;
After patch:
Comment #8
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commentedApplied the patch #3 on 9.3.x and it works fine.The whitespace is reduced after this patch. Adding screenshots below.
Moved to RTBC
Comment #9
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commentedComment #10
lauriiiDid you try if unloading
core/modules/locale/css/locale.admin.css
would solve this? I checked the CSS and it seems like at least most of it isn't needed in Claro.Comment #11
phenaproximaI tried @lauriii's suggestion of removing locale.admin.css in Claro, and it had the desired effect:
Attaching a patch which takes this approach.
Comment #12
tim.plunkettGood suggestion @lauriii, indeed the core
locale.admin.css
has a lot of unnecessary code, and I don't see any visual regressions after unloading it, only the desired improvements.Comment #13
lauriiiIt seems like the patch from #11 failed CI.
Comment #14
phenaproximaLooks like it's passed now...?
Comment #16
bnjmnmAnother unrelated test failure switched this out of RTBC. Switching back
Comment #21
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedRe-rolled Patch #11, as it's no longer applies to 10.1.x.
Comment #22
ameymudras CreditAttribution: ameymudras at Salsa Digital commentedIve tested the patch on 10.1.x and following are my findings
1. The Issues summary is clear and explains the problem
2. Was able to replicate the problem
3. The patch applies cleanly
4. The patch fixes the issue and eliminates the extra space.
5. Did a code review and its a simple change to offload the locale.admin.css css as per #10
Moving the issue to RTBC, skipping before / after screenshots, since a few have been already provided
Comment #23
lauriiiI am not sure we should actually get rid of this CSS file completely. The file seems to contain several UX enhancements to the translation related UIs. They may seem minor but I assume some thought has been put behind them.