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.
Built from https://develop.svn.wordpress.org/trunk@48145


git-svn-id: http://core.svn.wordpress.org/trunk@47914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-23 20:57:11 +00:00
parent dee326a5e4
commit a86cfefecb
6 changed files with 4 additions and 6 deletions

View File

@ -713,7 +713,6 @@ form#tags-filter {
}
.text-removed .policy-text {
font-style: italic;
color: #666;
font-weight: 600;
}

File diff suppressed because one or more lines are too long

View File

@ -712,7 +712,6 @@ form#tags-filter {
}
.text-removed .policy-text {
font-style: italic;
color: #666;
font-weight: 600;
}

File diff suppressed because one or more lines are too long

View File

@ -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 = '<div class="error inline"><p>' . sprintf( $removed, $date ) . '</p></div>';
$removed = '<div class="notice notice-info inline"><p>' . sprintf( $removed, $date ) . '</p></div>';
} elseif ( ! empty( $section['updated'] ) ) {
$class = 'text-updated';
$date = date_i18n( $date_format, $section['updated'] );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-48144';
$wp_version = '5.5-alpha-48145';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.