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.
Problem/Motivation
In #2348543: [meta] Consensus Banana Phase 2, transition templates to the starterkit theme we moved a lot of templates from modules to Classy, the CSS that relies on the classes in Classy is still in the modules files
Proposed resolution
Move the CSS that relies on the HTML classes for every module. Ensure that the classes aren't being added in the module.
Remaining tasks
User interface changes
None for Classy, Stark will be more Stark
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#36 | Screenshot 2015-09-27 20.20.06.jpg | 791.38 KB | LewisNyman |
#35 | move_image_theme_css_to-2489574-35.patch | 2.14 KB | LewisNyman |
#32 | 2489574-interdiff-32-23.txt | 365 bytes | jaxxed |
#32 | core-make_classy_imagewidget_a_component-2489574-32.patch | 2.13 KB | jaxxed |
#24 | move_image_theme_css_to-2489574-23.patch | 2.13 KB | LewisNyman |
Comments
Comment #1
Manjit.SinghComment #2
Manjit.Singhmoving images css to classy :)
Comment #3
Manjit.SinghComment #4
LewisNymanWe need to remove this attachment here.
Comment #6
Manjit.Singhremoved code as per suggestion in #4
Comment #7
Manjit.SinghComment #9
LewisNymanNice, thanks. It looks like the test shouldn't be too hard to fix. We need to take screenshots before/after in Classy and Seven.
Comment #14
Chernous_dn CreditAttribution: Chernous_dn at FFW for FFW commentedUpdate patch #6 I think that we need attach library to /core/themes/classy/templates/content-edit/image-widget.html.twig
Comment #15
star-szrManually testing (or committing) this may be blocked on #2511036: image-widget.html.twig never gets used (image_widget gets overridden by FieldWidget::process).
Comment #18
star-szrRerolled.
Comment #19
lauriiiNo visual changes so won't be uploading screenshots
Comment #20
davidhernandezWhy is the library called drupal.image?
Comment #21
lauriiiActually to get this align with other issues we probably should remove that library
Comment #22
LewisNyman@lauriii This was originally a separate library in the module, so I think it should stay a separate library in Classy?
Comment #23
lauriiiOh yeah and its being loaded conditionally. We still should rename the drupal.image to only image.
Comment #24
LewisNymanI renamed this library and the file to image-widget to better describe the contents.
Comment #25
lauriiiComment #26
davidhernandezShould this go in a css/theme folder, since it is being added to the theme category?
Comment #27
LewisNymanNope this is a component so we should switch to component.
Comment #28
jaxxed CreditAttribution: jaxxed at Wunder commentedlooks like you only need the 1 line change, I'll add that to your patch.
Comment #29
jaxxed CreditAttribution: jaxxed at Wunder commentedjust re-rolled with the small change. Couldn't find the right place to test it properly. Isn't this template supposed to load on any image field edit?
Comment #30
jaxxed CreditAttribution: jaxxed at Wunder commenteddoh! double uploaded.
Comment #31
jaxxed CreditAttribution: jaxxed at Wunder commentedOK, I made a mess out of the last upload, so I am going to just upload it again.
Comment #32
jaxxed CreditAttribution: jaxxed at Wunder commentedjust re-rolled with the small change. Couldn't find the right place to test it properly. Isn't this template supposed to load on any image field edit?
(2nd attempt at upload, repeating #29)
Comment #33
LewisNymanIt looks like this can't be tested until #2511036: image-widget.html.twig never gets used (image_widget gets overridden by FieldWidget::process) is committed so setting to postponed for now.
Comment #34
LewisNymanNow we can test this patch
Comment #35
LewisNymanReroll.
Comment #36
LewisNymanIt loads! Setting to RTBC/postponed.
Comment #37
davidhernandezDid you mean to change the status?
Comment #38
LewisNymanYes :P Thanks
Comment #39
akalata CreditAttribution: akalata commented