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 #2349711: Remove all visual from stark
Problem/Motivation
Since #2289511: [meta] Results of Drupalcon Austin's Consensus Banana the purpose of the Stark theme has been minimal HTML and CSS, with Classy available as an option for people who want helpful output to work with.
A decision to use Stark as a base theme means you choose to make all these decisions yourself, so Drupal shouldn't be making this decision for users of Stark.
Proposed resolution
Don't load the normalize library for all themes
Load the library in Classy
Beta phase evaluation
Issue category | Task |
---|---|
Issue priority | Not critical because because nothing is broken. |
Unfrozen changes | Unfrozen because it only changes how CSS is loaded. |
Prioritized changes | The main goal of this issue is to improve themer experience. This is a follow up to a commited change to remove all visuals from Stark, getting default core back to truly being default. |
Disruption | This change should not be disruptive. Any themes that were expecting normalize, and not using Classy, can simply add the library to their theme. |
Comment | File | Size | Author |
---|---|---|---|
#26 | interdiff-2472431-22to26.txt | 1.2 KB | davidhernandez |
#26 | do_not_load-2472431-26.patch | 2.91 KB | davidhernandez |
#22 | interdiff-2472431-17to22.txt | 296 bytes | davidhernandez |
#22 | do_not_load-2472431-22.patch | 2.91 KB | davidhernandez |
#19 | Screen Shot 2015-07-07 at 1.49.56 PM.png | 183.72 KB | cilefen |
Comments
Comment #1
LewisNymanComment #2
yannickooI have searched for
core/normalize
, removed the two occurrences and manually loaded normalize for Classy :)Comment #6
tim.plunkettComment #7
Manjit.Singh@yannickoo I guess no need to remove from theme.inc file
Comment #8
yannickooOh, I forgot to fix the test :)
Comment #9
yannickooRe #7: Can you explain me why? I mean it in that place the same libraries as in
system_page_attachments
should be loaded so when removing fromsystem_page_attachments
we should remove it fromtemplate_preprocess_maintenance_page
as well.Comment #10
yannickooI have removed the lines which were introdued here.
Comment #12
LewisNymanThis patch won't apply until #2349711: Remove all visual from stark is committed
Comment #13
davidhernandezThis probably ok. We've gone back and forth on how to handle Classy, but realize it will be the best place to put CSS so we can remove it from core modules. Related to all the dream markup efforts.
P.S. Why would anyone use Stark as a base theme? I don't understand the reasoning.
Comment #14
LewisNymanWell Stark is the default base theme in a way :)
Comment #17
davidhernandezThe remove all visuals from Stark issue is done. Lets try this again.
Comment #18
davidhernandezWe are removing the mandatory inclusion of a library in core, so a change record wouldn't hurt.
Comment #19
cilefen CreditAttribution: cilefen commentedI just started reviewing with a manual test and found this breaks the Bartik layout:
Comment #20
cilefen CreditAttribution: cilefen commentedSeven, also.
Comment #21
davidhernandezOh, duh. That should be core/normalize. I'll fix.
Comment #22
davidhernandezComment #23
davidhernandezAdding beta evaluation.
Comment #25
davidhernandezAdded a draft change record.
Comment #26
davidhernandezComment #27
cilefen CreditAttribution: cilefen commentedI am confused as to why core/normalize should exist in the context of this issue.
Comment #28
star-szrI think because it's a general purpose library it should stay in core so that other themes can use it freely and without possible confusion or dependencies.
Comment #29
davidhernandezYeah, it's a vendor provided asset, but core is what registers it as a library so it is available to all. Themes that don't use Classy may still want to make use of it, but we don't want to force it on them as a default.
Comment #30
cilefen CreditAttribution: cilefen commentedI am reviewing following the official process:
Based on my findings above, this is ready.
Comment #31
alexpottCommitted 23df3d5 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.