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.
Follow-up to #2350823: Use the Classy theme in the Testing profile
Problem/Motivation
Following the test profile changes to switch the default theme to Classy, we introduced a major regression. The layout.css file causes a sub-themes layout.css file that uses the same path not to load. This has broken Bartik!
Proposed resolution
Fix! If not quickly, roll back bbb4de91bc90ba016b82acd908cc0edd71830bf9.
Remaining tasks
We may want to follow up and do something about the test that checks for the layout.css file, because I don't like the idea of Classy trying to load it if it is empty.
Comment | File | Size | Author |
---|---|---|---|
#7 | after-patch-2.png | 620.73 KB | emma.maria |
#7 | after-patch-1.png | 451.13 KB | emma.maria |
#7 | before-patch.png | 463.91 KB | emma.maria |
#7 | after-patch-2.png | 620.73 KB | emma.maria |
#7 | after-patch-1.png | 451.13 KB | emma.maria |
Comments
Comment #1
lauriiiComment #2
davidhernandezA little more info. The layout file in Classy was added in classy.info. Bartik uses a library for its base, so the info file took precedence. It does not appear to have broken Seven, because Seven adds its layout file in the info file directly and not through a library.
Comment #4
lauriiiComment #5
davidhernandezJust changing to bug.
I think the larger problem is also a bug. Why can a base them override a subtheme?
Comment #6
Fabianx CreditAttribution: Fabianx commentedRTBC, this is a good move, we want to get rid of CSS in .info files anyway :).
And then this bug goes away automatically.
Comment #7
emma.mariaBartik currently has a broken layout right now. In the source you can see only Classy's layout.css being loaded and not Bartik's layout.css.
With the patch applied Bartik looks like it should again. And you can see in the source and when you inspect that Bartik's layout.css file is being loaded again and in use.
Therefore this patch fixes what is currently broken at head.
Comment #8
alexpottGiven #2377397: Themes should use libraries, not individual stylesheets I think we should move ahead here without adding specific tests. This issue addresses a critical bug and is allowed per https://www.drupal.org/core/beta-changes. Committed bdafa44 and pushed to 8.0.x. Thanks!