Suggested commit message :
git commit -m 'Issue #2581407 by davidhernandez, LewisNyman, emma.maria, Saphyel: Remove the obsoletely named Classy library attached to Bartik'\''s comment.html.twig as Bartik uses its own styles. '
Problem/Motivation
Comments that were replies to other comments used to be wrapped in the indented class, I traced this back to working in beta 14. Then something happened.
Beta 14.
HEAD right now.
This has a big impact on Bartik as it styles a reply by indenting it to sit under the comment it is replying to.
Proposed resolution
If this feature was removed for a reason (which I can't find anywhere) I think themes still need a class in the markup so replies can have targeted styles added to them.
Remaining tasks
Figure out why this has happened
Fix it with a patch :-)
User interface changes
Put back the indented comment visual feature.
API changes
none
Data model changes
none
Comment | File | Size | Author |
---|---|---|---|
#21 | Screenshot from 2016-03-05 12-26-00.png | 52.56 KB | Saphyel |
#17 | remove_the_classy-2581407-17.patch | 440 bytes | davidhernandez |
#11 | regression_comments-2581407-10.patch | 428 bytes | LewisNyman |
#2 | commentindented.png | 206.15 KB | davidhernandez |
head-screenshot.png | 65.08 KB | emma.maria |
Comments
Comment #2
davidhernandezNot sure what is up with the markup. I'm on head:
and I see the correct markup. See screenshot. The CSS however needs to be fixed. The indented comment is a sibling of the comment replied to, so it needs sibling selector. not sure when this template/logic changed.
I don't know why Emma and I are seeing different markup.
Comment #3
Dave ReidI can confirm I'm seeing the same broken display as emma.maria.
Comment #4
Dave ReidComment #5
davidhernandezJust to double check, were replies actually made, and not just relying on devel to generate comments? Maybe the generator isn't replying properly.
Comment #6
Dave ReidYes, I made the replies entirely through the UI, and not using devel generated content.
Comment #7
davidhernandezI'm still seeing the correct markup, but I did find one spot of regression. The Classy library name was changed to "indented". That needs to be updated in Bartik's comment template and why the CSS for Classy isn't loading.
Comment #8
emma.mariaSo I tested again to triple check and indented markup is printing. I think I messed up my 8.0.x branch testing.
The styling of indented comments CSS is already broken for Bartik as pointed out here in this Bartik issue #2512468: Regression: Indented styles for indented comments are missing in Bartik.. So it turns out that the indented.css file from Classy with working indented styles is now currently not being loaded on the frontend. That is the actual bug here.
Comment #9
emma.mariaComment #10
emma.mariaOn IRC @davidhernandez has pointed out:
Comment #11
LewisNymanLooks like we forgot to update the library name in the Bartik template. Here's the fix.
Comment #13
davidhernandezThat "indented" library from Classy is only adding two rules used for indenting the threaded comments. That is something Bartik is trying to supply itself, so I'm thinking just delete the library attaching in Bartik's comment template and fix the CSS in the other issue. This doesn't need to postpone the other one.
#2512468: Regression: Indented styles for indented comments are missing in Bartik.
Comment #14
davidhernandezThat could also be deleted in the other issue.
Comment #15
emma.mariaRefactoring this issue as Bartik itself fixed the loss of indentation in #2512468: Regression: Indented styles for indented comments are missing in Bartik. using it's own CSS. But we still need to carry out the task of removing the attached Classy library as mentioned by David in #13 as Bartik provides all of it's own style for comments.
Comment #16
emma.mariaComment #17
davidhernandezRemoving the library from the template.
Comment #18
webchickRan into this bug today, updating the description slightly.
Comment #20
emma.mariaTo complete this issue we need someone to test the patch in #17 check that comments in Bartik look the same Before and After and post screenshots. Then this issue will be RTBC.
Comment #21
Saphyel CreditAttribution: Saphyel as a volunteer commentedReview and now works as Beta 14
Comment #22
emma.mariaSuggested commit message :
git commit -m 'Issue #2581407 by davidhernandez, LewisNyman, emma.maria, Saphyel: Remove the obsoletely named Classy library attached to Bartik'\''s comment.html.twig as Bartik uses its own styles. '
Comment #25
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x, thanks!