Problem/Motivation
Click on a 'new' comment marker via a view configured to show it. There's no anchor.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff_3270574_3-5.txt | 906 bytes | andregp |
| #5 | 3270574-5.patch | 1.08 KB | andregp |
| #3 | 3270574-3.patch | 890 bytes | catch |
| #2 | 3270574.patch | 670 bytes | catch |
Comments
Comment #2
catchThis is whats missing. It should not really be necessary for all this to be in the template...
Comment #3
catchComment js also relies on the js-comment class.
Comment #4
mherchelThis is a great find! A couple issues:
1) I really didn't understand what was happening until I looked at Bartik and read the code comment within that template. Lets add the same comment into the Olivero template.
2) I don't believe the
<mark>element is semantically correct here. According to MDNThis isn't what we're doing. This element is simply giving JavaScript something to ingest.
Comment #5
andregp commentedFixed patch according to #4
Comment #6
mherchel#5 looks perfect. Pretty sure this patch should apply for d10... adding a test.
I verified this by creating two users, and a view that shows new comments. When user 1 created a comment, the "new" link was visible to user 2 and hyperlinked properly.
Comment #9
lauriiiShould we open follow-up to change the
<mark>element to a<span>in the comments module?Committed c668e0b and pushed to 10.0.x. Also cherry-picked to 9.4.x. Thanks!