Opened 10 years ago
Last modified 5 weeks ago
#35862 new defect (bug)
Comments screen: audit all the background color animations
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 3.8 |
| Component: | Comments | Keywords: | has-screenshots has-ux-feedback has-patch |
| Focuses: | ui, javascript | Cc: |
Description
Noticed some weird behavior, to reproduce: go in the Comments screen (in the "All" view), and mark as spam or move to the trash an approved comment. The comment row background will quickly "flash" to red and then the comment row will disappear.
Do the same on an unapproved comment: no red flash.
There are also other cases where this happens, seems all related to pending comments. By the way, the JavaScript animations still run and the background is animated behind the scenes. It just can't be seen because the pending comment row background color is now set on the th and td elements that hide the change on the tr background. Looks like this JavaScript part wasn't updated after the CSS changes in WordPress 3.8.
There are also other old things that missed to be updated, for example at some point JavaScript still uses #FFFFE0. This was the background color used for unapproved comments in WordPress 3.7 but they use #FEF7F1 since 3.8.
I'd propose two options:
- Fix the animations :)
- Get rid of them. Apparently, not so many users have complained about the (partial) lack of color animations in the last 2 years
I'd lean toward the second option. There are several lines of JavaScript in edit-comments.js and wp-lists.js that could be removed, they are hard to maintain and being a bit old code they also violate the separation of structure, presentation and behavior principle. Yes, the JS could be refactored and maybe use a more modern approach but for, I'd say, a very little benefit.
So before any patch attempt, this would need a decision. Any thoughts more than welcome.
In the screenshot below, the red flash on pending comments, how it used to be on WordPress 3.7
Attachments (2)
Change History (10)
#1
follow-up:
↓ 2
@
10 years ago
- Keywords ux-feedback added
- Milestone changed from Awaiting Review to Future Release
#2
in reply to:
↑ 1
@
10 years ago
Replying to rachelbaker:
@afercia I believe we need some way to make the user aware that an item is about to disappear from the screen.
Then: option 1 :)
This ticket was mentioned in Slack in #design by lucijanblagonic. View the logs.
9 years ago
#5
@
9 years ago
- Keywords has-ux-feedback added; ux-feedback removed
I would agree that we should have some indication in animation of the state transition like this. I'd not be keen we removed them entirely.
#6
@
5 months ago
- Keywords close added
Hi all,
As the Ui/Ux has changed completely since this issue was raised 10 years ago, I don't believe this ticket is relevant to WordPress anymore and can be closed now.
#7
@
3 months ago
- Keywords reporter-feedback added
Hi @afercia, I do still see the inconsistency with the "red flash" on approved vs unapproved comments being moved to trash. However, as Callum mentioned, a lot has changed since this ticket was opened. What are your thoughts on keeping this open vs closing it?
#8
@
5 weeks ago
- Keywords has-patch added; needs-patch close reporter-feedback removed
- Milestone set to Awaiting Review
35862.tr.diff moves the background color for unapproved comments to the table row element, which seems sufficient.
If defining a background on each cell is important, as [26072] did, the cells could inherit from the row with 35862.inherit.diff.

@afercia I believe we need some way to make the user aware that an item is about to disappear from the screen. The method we use does not have to match the color animation we have now, but there should be some form of feedback.