Accessibility: Improve the Comments and Privacy count text.

- standardizes the Comment count string to `%s Comment in moderation', '%s Comments in moderation` so it can be bulk-updated
- adds the string as visually hidden text in the admin menu 
- introduces an `updateInModerationText` JS simple function, responsible to correctly update all the related text using the data from the AJAX response
- adds a visually hidden text "1 Privacy Policy update" to the Privacy menu items count
- adds/improves translators comments

Changes that apply to all the count bubbles (Updates, plugins, etc.)
- makes the bubbles and their text slightly bigger
- improves the active menu item bubble contrast by changing the background color to red (option 2 in the screenshot attached in a previous comment)

Props adamsoucie, afercia.
Fixes #33030.

Built from https://develop.svn.wordpress.org/trunk@44924


git-svn-id: http://core.svn.wordpress.org/trunk@44755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia
2019-03-18 15:22:53 +00:00
parent 513b862cc6
commit e901bc4c2b
11 changed files with 100 additions and 62 deletions

View File

@@ -515,14 +515,15 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu .update-plugins {
display: inline-block;
vertical-align: top;
margin: 1px 2px 0 0;
box-sizing: border-box;
margin: 1px 2px -1px 0;
padding: 0 5px;
min-width: 7px;
height: 17px;
border-radius: 11px;
min-width: 18px;
height: 18px;
border-radius: 9px;
background-color: #ca4a1f;
color: #fff;
font-size: 9px;
font-size: 11px;
line-height: 17px;
text-align: center;
z-index: 26;
@@ -530,7 +531,7 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu li.current a .awaiting-mod,
#adminmenu li a.wp-has-current-submenu .update-plugins {
background-color: #00b9eb;
background-color: #ca4a1f;
color: #fff;
}

File diff suppressed because one or more lines are too long

View File

@@ -515,14 +515,15 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu .update-plugins {
display: inline-block;
vertical-align: top;
margin: 1px 0 0 2px;
box-sizing: border-box;
margin: 1px 0 -1px 2px;
padding: 0 5px;
min-width: 7px;
height: 17px;
border-radius: 11px;
min-width: 18px;
height: 18px;
border-radius: 9px;
background-color: #ca4a1f;
color: #fff;
font-size: 9px;
font-size: 11px;
line-height: 17px;
text-align: center;
z-index: 26;
@@ -530,7 +531,7 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu li.current a .awaiting-mod,
#adminmenu li a.wp-has-current-submenu .update-plugins {
background-color: #00b9eb;
background-color: #ca4a1f;
color: #fff;
}

File diff suppressed because one or more lines are too long