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.
See parent issue(s) and related issue(s) for details,
Problem/Motivation
Remove non essential classes from core - the classes are in classy, cores templates should be as clean as possible.
js required classes should be prefixed to js- according to code standards
Proposed resolution
cleanup up
core/modules/system/templates/maintenance-page.html.twig- core/modules/system/templates/mark.html.twig
- core/modules/system/templates/menu-local-action.html.twig
- core/modules/system/templates/menu-local-task.html.twig
- core/modules/system/templates/menu-local-tasks.html.twig
- core/modules/system/templates/menu.html.twig
Remaining tasks
User interface changes
API changes
Original report by @username
Comment | File | Size | Author |
---|---|---|---|
#26 | interdiff-mtempaltes-26-26.txt | 885 bytes | mortendk |
#26 | templates-cleanup-m-26.diff | 3.28 KB | mortendk |
#24 | m-interdiff.txt | 331 bytes | mortendk |
#24 | m-templates-no-ragrets.png | 1023.07 KB | mortendk |
#24 | templates-cleanup-m-24.diff | 3.11 KB | mortendk |
Comments
Comment #1
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedComment #2
davidhernandezPostponing this until we decide how we are moving forward. Keep an eye on #2348543: [meta] Consensus Banana Phase 2, transition templates to the starterkit theme for updates. Thanks.
Comment #3
davidhernandezUn-postponing. The templates have been copied to Classy, so all we need to do is remove classes from the original templates.
Comment #4
mortendk CreditAttribution: mortendk commentedComment #5
mortendk CreditAttribution: mortendk commentedComment #6
mortendk CreditAttribution: mortendk commentedComment #7
Xen CreditAttribution: Xen commentedComment #8
Xen CreditAttribution: Xen at Reload commentedLooked through all files, and they render as intended.
Comment #9
Xen CreditAttribution: Xen commentedComment #13
mortendk CreditAttribution: mortendk commentedlooks like testboot was drunk setting this back to RTBC after tester from xen
Comment #14
alexpottTemplates are not frozen in beta. Committed 2b9b727 and pushed to 8.0.x. Thanks!
Comment #16
star-szrThis caused a visual regression in Seven's installer. It looks like the original maintenance-task-list.html.twig should have been copied to Classy. Follow-up created unless we want to revert: #2426589: Visual regression: Missing 'task-list' class in Seven installer
Comment #17
mortendk CreditAttribution: mortendk commentedwe want a followup ;)
Comment #18
davidhernandezI uploaded a patch in the issue Cottser linked to.
Comment #19
alexpottWe should not have been changing maintenance-task-list.html.twig installer theming is not at all like regular theming. Revert this patch.
Comment #20
davidhernandezAlex, did you push that revert? I'm not picking it up.
Comment #22
hussainwebRemoving maintenance template from the patch.
Comment #23
mortendk CreditAttribution: mortendk commentedmaintenance-page.html.twig
should still be cleaned up, whats beeing reverted is themaintenance-task-list.html.twig
Which we should rename in a followup issue to
install-tast-list.html.twig
or something like that to make senseComment #24
mortendk CreditAttribution: mortendk commentedmaintenance-task-list.html.twig
is pulled of the patchinterdiff added
no visual regressions on installer
Comment #25
Manuel Garcia CreditAttribution: Manuel Garcia commentedWe should remove these comments since they refer to the classes we are removing.
Comment #26
mortendk CreditAttribution: mortendk commentedcomments removed intediff added
Comment #27
Manuel Garcia CreditAttribution: Manuel Garcia commentedAlright this now good to go. Double checked that all removed classes are still in classy, so we are safe when it comes to visual regressions.
Comment #28
alexpottTemplates are not frozen in beta. Committed bc49133 and pushed to 8.0.x. Thanks!
Comment #31
hass CreditAttribution: hass commentedHow has this change not broken the toolbar that require .menu class?
Comment #32
hass CreditAttribution: hass commentedAhh classy kept the menu class.
Comment #33
star-szrThat's a good catch @hass, if you switch your theme to Stark and navigate to the homepage you get a kinda broken toolbar. Not really this issue's fault, at this point I agree that toolbar shouldn't be using such a generic class name for both its CSS and especially not its JS. So it seems we need to add some classes back until #1944572: Remove "ul.menu" dependency to prevent theme clashes is resolved:
#2447829: Add "menu" classes back to menu.html.twig for toolbar functionality