From 10906c673fff3f6eabc0dc330e68401de3b4bc4b Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 3 Aug 2016 22:23:50 +0000 Subject: [PATCH] Updates: Improve bulk update failure notice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When doing a bulk update, if there are failures the user needs to know about that. This makes it clearer that you can click on the notification to see more details, especially for screen reader users. Fixes #37510. Props juhise, Ankit K Gupta, afercia, jorbin, ocean90.  git-svn-id: https://develop.svn.wordpress.org/trunk@38185 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 12 ++++++++++-- src/wp-admin/includes/update.php | 26 +++++++++++++------------- src/wp-admin/js/updates.js | 18 ++++++++++++------ 3 files changed, 35 insertions(+), 21 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index b09c390202..a468d81395 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -3024,7 +3024,8 @@ img { /* Metabox collapse arrow indicators */ .js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .toggle-indicator:before { +.js .meta-box-sortables .postbox .toggle-indicator:before, +.bulk-action-notice .toggle-indicator:before { content: "\f142"; display: inline-block; font: normal 20px/1 dashicons; @@ -3035,7 +3036,8 @@ img { } .js .widgets-holder-wrap.closed .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before { +.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before, +.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before { content: "\f140"; } @@ -3065,6 +3067,12 @@ img { text-indent: 1px; /* account for the dashicon alignment */ } +.bulk-action-notice .toggle-indicator:before { + line-height: 16px; + vertical-align: top; + color: #72777c; +} + .js .postbox .handlediv:focus { -webkit-box-shadow: none; box-shadow: none; diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 457b5fee63..74899e37cb 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -634,7 +634,7 @@ function wp_print_admin_notice_templates() {
id="{{ data.id }}"<# } #> class="notice {{ data.className }}">

{{{ data.message }}}