From 1c3c39f7af09f87e7f61c1d66c34168824ebbc02 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Jun 2020 20:55:54 +0000 Subject: [PATCH] Accessibility: Privacy: Improve the readability of the removed text in Privacy Policy Guide. Per WCAG 2.0 guidelines, big chunks of italic text should be avoided for better accessibility. Additionally, replace the legacy `.error` class for "You deactivated this plugin and may no longer need this policy" message with `.notice-info`. Follow-up to [47147], [48116]. Props afercia, audrasjb. See #47327, #44621. git-svn-id: https://develop.svn.wordpress.org/trunk@48145 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/edit.css | 1 - src/wp-admin/includes/class-wp-privacy-policy-content.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index 0e4e201b78..536a935819 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -712,7 +712,6 @@ form#tags-filter { } .text-removed .policy-text { - font-style: italic; color: #666; font-weight: 600; } diff --git a/src/wp-admin/includes/class-wp-privacy-policy-content.php b/src/wp-admin/includes/class-wp-privacy-policy-content.php index 3dd728cb52..f89987bc41 100644 --- a/src/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/src/wp-admin/includes/class-wp-privacy-policy-content.php @@ -389,7 +389,7 @@ final class WP_Privacy_Policy_Content { /* translators: %s: Date of plugin deactivation. */ $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' ); - $removed = '

' . sprintf( $removed, $date ) . '

'; + $removed = '

' . sprintf( $removed, $date ) . '

'; } elseif ( ! empty( $section['updated'] ) ) { $class = 'text-updated'; $date = date_i18n( $date_format, $section['updated'] );