WordPress.org

Make WordPress Core

Changeset 48145


Ignore:
Timestamp:
06/23/2020 08:55:54 PM (3 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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r48116 r48145  
    713713
    714714.text-removed .policy-text {
    715     font-style: italic;
    716715    color: #666;
    717716    font-weight: 600;
  • 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.