WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/23/2020 08:55:54 PM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r47572 r48145  
    390390                /* translators: %s: Date of plugin deactivation. */
    391391                $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' );
    392                 $removed = '<div class="error inline"><p>' . sprintf( $removed, $date ) . '</p></div>';
     392                $removed = '<div class="notice notice-info inline"><p>' . sprintf( $removed, $date ) . '</p></div>';
    393393            } elseif ( ! empty( $section['updated'] ) ) {
    394394                $class = 'text-updated';
Note: See TracChangeset for help on using the changeset viewer.