[wp-trac] [WordPress Trac] #36424: graphically visualize if comments are closed (in wp-admin/edit.php)
WordPress Trac
noreply at wordpress.org
Thu May 26 11:58:40 UTC 2016
#36424: graphically visualize if comments are closed (in wp-admin/edit.php)
-------------------------------------+-------------------------------------
Reporter: pixelverbieger | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch has- | Focuses: ui, accessibility,
screenshots ux-feedback | administration
-------------------------------------+-------------------------------------
Comment (by LittleBigThing):
Some additional stuff if we would go down this way.
Assuming that the
[https://core.trac.wordpress.org/attachment/ticket/36424/36424.patch
latest patch] is slightly modified:
- adding an additional class `post-com-closed`
- adding the code before row 658. This means that 'Comments are closed'
comes first in HTML markup (if this isn't ideal for accessibility, it
would be easier to put the lock in the bottom right corner CSS-wise)
the following CSS would work quiet well:
{{{
.post-com-closed {
position: relative;
left: 3px;
width: 17px;
height: 17px;
border: 2px solid #fff;
border-radius: 11px;
background: #ccc;
color: #fff;
}
.post-com-closed:before {
font-size: 12px;
position: relative;
top: -6px;
}
}}}
The color of the lock could/might be darker (like 72777c) if necessary
with regard to accessibility.
Another point, the text 'Comments are closed' should probably be displayed
on mobile instead of the lock (as for the number of (unapproved)
comments). This is not yet the case in this proposal, but some additional
CSS would do it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36424#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list