Make WordPress Core


Ignore:
Timestamp:
05/15/2019 02:24:15 PM (6 years ago)
Author:
desrosj
Message:

Site Health: Improve vertical alignment of icons in test result descriptions.

This change removes redundant CSS properties for different health check statuses in favor of utilizing the .dashicons class already in Core to define them more consistently. This also fixes the vertical alignment issues.

Props chetan200891, Clorith, desrosj.
Fixes #46940.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r45308 r45309  
    890890                }
    891891
    892                 $failures[ $library ] = "<span class='$class'><span class='screen-reader-text'>$screen_reader</span></span> $message";
     892                $failures[ $library ] = "<span class='dashicons $class'><span class='screen-reader-text'>$screen_reader</span></span> $message";
    893893            }
    894894        }
     
    14881488
    14891489            $output .= sprintf(
    1490                 '<li><span class="%s"><span class="screen-reader-text">%s</span></span> %s</li>',
     1490                '<li><span class="dashicons %s"><span class="screen-reader-text">%s</span></span> %s</li>',
    14911491                esc_attr( $test->severity ),
    14921492                $severity_string,
Note: See TracChangeset for help on using the changeset viewer.