Needs work
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
15 Jul 2016 at 18:52 UTC
Updated:
10 May 2023 at 02:12 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
markconroy commentedAdding patch, setting status to 'needs review'.
Comment #3
markconroy commentedComment #4
markconroy commentedComment #5
joelpittetWe tried hard to lighten the load of classes that are unneeded but give the flexibility to the frontend dev to add them back if they want to use them.
I don't think we should add them in, I do think you should if you want/need them for your project.
Maybe we can find a place to improve docs or make this easier for site builders?
Comment #6
Jeff Burnz commentedPatches that add classes should really be against Classy, not templates in core modules etc (or Stable).
Note that Classy adds two classes already:
Comment #7
dawehnerJust a random idea, maybe having a test theme which has all kind of custom CSS classes, some using variables for example, might be a good place to give ideas for people?
Comment #9
lauriiiI have proposed adding unstable classy here: #2659890: [Policy] [Plan] Drupal 9 and 10 markup and CSS backwards compatibility which could include a unlimited amount of class changes, just like Bartik and Seven. It seems like it would help this issue.
Comment #14
andypostComment #23
shivam_tiwari commentedComment #24
smustgrave commentedClassy theme is removed in D10 and these changes probably appear in multiple locations.
Probably better to use a process hook to add the classes as editing a twig template will have to cover BC.
No test coverage either.