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:
parent
dee326a5e4
commit
a86cfefecb
|
@ -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
|
@ -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
|
@ -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'] );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue