Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forum.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2015 at 12:38 UTC
Updated:
15 Sep 2016 at 07:43 UTC
Jump to comment: Most recent, Most recent file






Comments
Comment #1
lewisnymanComment #2
Aleksandar_P commentedComment #3
Aleksandar_P commentedComment #4
mgifford@LewisNyman - why didn't you upload a patch? What is forum.module.css_.txt other than the current forum.module.css?
Comment #5
emma.maria@mgifford it's a starting point. Others can see the whole file as it is now and you can use dreditor to add suggestions to it if you do not want to write a patch yourself.
Comment #6
lewisnyman@mgifford It's easy to review it in Dreditor to find problems to fix
Comment #7
mgiffordOk, no problem. So this would be to just replace core/modules/forum/css/forum.theme.css if everyone's happy with the CSS.
Comment #8
lewisnymanThere is loads to do :P
This should be .forum__description
forum__created
forum__posts
forum__topics
forum__last-reply
forum__replies
forum__pager
forum__icon
forum__title
hmm don't we already have an indent class that we use in menus?
forum__topic-status--new
forum__topic-staus--hot
forum__topic-staus--hot-new
forum__topic-staus--sticky
forum__topic-staus--closed
forum-topic-navigation is a good class name imo, but why only rtl styling? Where is the ltr styling?
forum-topic-navigation__previous
forum-topic-navigation__next
I'm not sure what this is but I don't think we have an action class in D8, so we can't add a forum modifier to it
Comment #9
Vidushi Mehta commented@LewisNyman replaced classes in patch.. Please verify
other, what should we do with
#forum div.indent, I guess ID's would be no longer in D8.Comment #10
Vidushi Mehta commentedComment #11
lewisnymanComment #12
lewisnymanThis is looking good, but we also need to change the twig files as well as the CSS. Setting back to needs work.
Comment #13
MathieuSpil commentedComment #14
MathieuSpil commentedCSS changes::
1. Following the last patch of Vidushi Mehta, I noticed there are other css-files inside Customtheme and Bartik that use the
#forum-selector.2. I saw that the
#forum td.createdand the#forum td.pagerselector was no longer being used, so I deleted it from the CSS.3. Replaced
#forum div.indentwith.forum .indentedfollowing the comment-module.4. Removed all css using the
.forum-topic-navigationselector because I can't find where this is being used? (That's probably why only the rtl was still inside the CSS?)Twig changes:
1. I updated the template files in the classy theme.
Other changes:
1. There is still a need for a refactoring inside the forum frontend. (but maybe this should be for a other ticket?)
2.
.action--forumis now replaced with.forum__actionBecause this makes more sense to me, or am I missing something here?Comment #16
lewisnymanWe are missing blank lines at the end of these files
Instead of using custom classes and CSS, I think we can just reuse the
.action-linksclassWhat is left to do?
Comment #17
manjit.singh@LewisNyman adding blank line at the end of file. Please verify.
what should we do, Can we replace
.forum__actionwith.action-linksin css and ForumController.php ?Comment #18
tadityar commentedComment #20
MathieuSpil commentedComment #21
MathieuSpil commentedChanges from patch #17:
We now use the
.action-linksclass.@lewis: Not sure if this has been noticed before, but the comment.theme.css file defines the following:
This causes the elements with class
.indentedto have margins defined from the moment the comment-module is being used. I don't think that is a desired behaviour, because we use the.indentedalso in the forum-module... (Follow-up ticket for this?)About the frontend refactoring:
We didn't do any semantic reordering in this ticket, so why do we change
into
and not into
Something else I noticed is that we can now have a
.foruminto.forumBecause in forums.html.twig we have:
and in forum-list.html.twig we have
And last but not least, the testing is failing because "I think" we deleted the id="forum" and now the bot can't create testnodes.
Comment #22
lewisnymanYeah that sounds like we should reduce the scope of that selector, can you create a new issue for it? For this issue, can we change the class to
.forum__indented?Yeah this is a good improvement, what do you think we should do with
.forum__pager? Does it make sense to give it nowrap?Can we rename the old
.forumclass to be.forum-list__forum? I think that is more clear what it's purpose is.Comment #23
MathieuSpil commented1. Created a follow-up issue for the indented class, for now I suggest to keep .forum .indented (the same as how the comment module does this) This way the follow-up ticket will be more clear.
2. I think
.forum__pageror the old#forum td.pageris no longer relevant, and it should have been removed from the first patch of mine, can you confirm?3. Changed the old
.forumto.forum-list__forumas suggested.Also changed ticket to needs review so it is more clear what changes need to happen in the tests.
Comment #25
pakmanlhWorking on it.
Comment #26
pakmanlhComment #27
svendecabooterComment #28
MathieuSpil commentedComment #29
lewisnymanHere is the interdiff between 23 and 26
Comment #30
lewisnymanHere are the screenshots to compare before and after
Before:



After:



I don't think we should be adding this class in the module. Only in Classy
Comment #31
MathieuSpil commentedResetted
in latest patch based upon #27
Comment #32
lewisnymanComment #33
lewisnymanThanks, almost done:
We are missing a blank link here
Comment #34
manjit.singh@lewisnyman Adding blank line :)
Comment #35
manjit.singhComment #36
lewisnymanExcellent, thank you!
Comment #42
emma.mariaThe patch applies, I found nothing weird in the patch. Due to the high number of errors and seeing a patch in another issue fail like this and it is now passing, I'm hitting re-test again and keeping my fingers crossed.
Comment #44
emma.mariaSetting back to RTBC as the patch passes and @LewisNyman already gave it the status in #36.
Comment #47
lewisnymanSeems legit...
Comment #48
alexpottCommitted 1cdef09 and pushed to 8.0.x. Thanks!
Thanks for adding the beta eval to the issue summary.
Comment #51
Vidushi Mehta commented