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 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 commentedComment #5
mortendk commentedComment #6
mortendk commentedComment #7
xen commentedComment #8
xen commentedLooked through all files, and they render as intended.
Comment #9
xen commentedComment #13
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 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 commentedmaintenance-page.html.twigshould still be cleaned up, whats beeing reverted is themaintenance-task-list.html.twigWhich we should rename in a followup issue to
install-tast-list.html.twigor something like that to make senseComment #24
mortendk commentedmaintenance-task-list.html.twigis pulled of the patchinterdiff added
no visual regressions on installer

Comment #25
manuel garcia commentedWe should remove these comments since they refer to the classes we are removing.
Comment #26
mortendk commentedcomments removed intediff added
Comment #27
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 commentedHow has this change not broken the toolbar that require .menu class?
Comment #32
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