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
This commit is contained in:
parent
c9d2ccb321
commit
1c3c39f7af
@ -712,7 +712,6 @@ form#tags-filter {
|
||||
}
|
||||
|
||||
.text-removed .policy-text {
|
||||
font-style: italic;
|
||||
color: #666;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
@ -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'] );
|
||||
|
Loading…
Reference in New Issue
Block a user