Problem/Motivation
When a forum has a new topic, the forum list at /forum shows that there is a new topic in the forum, but does not show the starred speech bubble next to the forum name.
Current/Broken:
Expected:
Proposed resolution
Cleanup CSS classes and bring them into alignment with [1887918]
I took a look at [1887918]
This is what I came up with for some new CSS, so far:
/forum
.forums
.forums__forum
.forums__forum--[variant]
.forums__forum__icon
.forums__forum__name
/forum/{taxonomy_term}
.forum
.forum__topic
.forum__topic--[variant]
.forum__topic__icon
.forum__topic__meta
Here are some images that highlight where these classes would apply.
/forum
/forum/{taxonomy_term}
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Embed before and after screenshots in the issue summary | Novice | Instructions |
User interface changes
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#19 | new.png | 12.55 KB | quiron |
#19 | nonew.png | 11.64 KB | quiron |
#5 | forum-indicator-status-2489374-4.patch | 373 bytes | colinafoley |
#2 | new-topic.png | 16.36 KB | dixon_ |
#1 | bartik-forum-indicator-2489374-1.patch | 351 bytes | colinafoley |
Comments
Comment #1
colinafoley CreditAttribution: colinafoley at Lehigh University commentedComment #2
dixon_Very straight forward fix. Code looks good. I've applied the patch and it works.
Comment #3
joelpittetComment #4
colinafoley CreditAttribution: colinafoley at Lehigh University commentedJust realized this should be in forum.theme.css not Bartik
O_o
Comment #5
colinafoley CreditAttribution: colinafoley at Lehigh University commentedComment #6
colinafoley CreditAttribution: colinafoley at Lehigh University commentedComment #7
colinafoley CreditAttribution: colinafoley at Lehigh University commentedComment #8
mortendk CreditAttribution: mortendk commentedWe should create a followup issue that fixed the crappy css names, but this patch works as it should :)
Comment #9
colinafoley CreditAttribution: colinafoley at Lehigh University commentedComment #10
joelpittetSo there is already a class for this called "forum__topic-status--new" so we just have to fix the class that gets output.
Comment #11
larowlanComment #12
YesCT CreditAttribution: YesCT commentedadding link to the issue summary, remaining tasks for adding before and after screenshots
Comment #13
colinafoley CreditAttribution: colinafoley at Lehigh University commentedI took a look at [1887918]
This is what I came up with for some new CSS, so far:
/forum
.forums
.forums__forum
.forums__forum--[variant]
.forums__forum__icon
.forums__forum__name
/forum/{taxonomy_term}
.forum
.forum__topic
.forum__topic--[variant]
.forum__topic__icon
.forum__topic__meta
Here are some images that highlight where these classes would apply.
/forum
/forum/{taxonomy_term}
Comment #14
colinafoley CreditAttribution: colinafoley at Lehigh University commentedThis issues might need a title change at this point.
Comment #15
larowlanSo the classy/dataset/forum-icon.html.twig has this:
So shouldn't that already add forum__topic-status--new when icon_status is new?
Comment #19
quironHi,
with a Drupal 8.2.7 clean out of the box seems working properly. Attaching the image of the same site state with 2 different users.
Comment #28
LendudeTested in 10.1 and still broken
As @larowlan pointed out in #15 we would expect the right class to get added, but it doesn't...because the list template doesn't use the icon template to generate the icons!
See for example
core/profiles/demo_umami/themes/umami/templates/classy/dataset/forum-list.html.twig
So that should probably use the icon template? Maybe? Or should we just add the correct class in the list template too?
Comment #29
larowlanI think we should just add the icons in the list template, the icon template looks to have a id=new attribute that wouldn't make sense in a list (judging by my comment above)
Comment #31
quietone CreditAttribution: quietone at PreviousNext commentedForum is approved for removal. See #1898812: [policy] Deprecate forum module for removal in Drupal 11
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to the contributed extension once the Drupal 11 branch is open.