[wp-trac] [WordPress Trac] #48799: "At a Glance" comment count font size is larger than other counts
WordPress Trac
noreply at wordpress.org
Tue Nov 26 18:15:27 UTC 2019
#48799: "At a Glance" comment count font size is larger than other counts
--------------------------+-----------------------------
Reporter: jeremyfelt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: needs-patch
Focuses: css |
--------------------------+-----------------------------
In the WordPress dashboard, on a mobile browser, the font size applied to
"At a Glance" items is 13px. [https://github.com/WordPress/wordpress-
develop/blob/4159a41cefb0fd83a64cf6f240cb4d98e205b9a7/src/wp-
admin/css/common.css#L2099-L2103 This rule is applied] via `.postbox
.inside` in `common.css`.
The `.post-count`, `.page-count`, and `.comment-mod-count` elements all
inherit this value.
The `.comment-count` element differs in that a `font-size: 14px;` from
`list-tables.css` [https://github.com/WordPress/wordpress-
develop/blob/4159a41cefb0fd83a64cf6f240cb4d98e205b9a7/src/wp-admin/css
/list-tables.css#L1754-L1756 overrides the postbox value].
`.comment-count` itself is confusing because I'm pretty sure its only
other use is in the post list table when a post has 0 approved comments
and 1 or more pending comments. Even then, the 14px style only applies on
mobile and in the mobile view that comment count is hidden.
I'm fairly certain that the `.comment-count` rule in `list-tables.css`
could be removed without consequence, but I'll leave that up to those more
familiar. :)
I originally noticed this in Google Chrome on a Pixel 3 and reproduced it
in Firefox on a laptop at a 411x731 screen size.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48799>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list