mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@45309 git-svn-id: http://core.svn.wordpress.org/trunk@45120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d04482650
commit
f48f926077
@ -153,32 +153,23 @@
|
||||
.health-check-body .pass::before,
|
||||
.health-check-body .good::before {
|
||||
content: "\f147";
|
||||
display: inline-block;
|
||||
color: #46b450;
|
||||
font-family: dashicons;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.health-check-body .warning::before {
|
||||
content: "\f460";
|
||||
display: inline-block;
|
||||
color: #ffb900;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.health-check-body .info::before {
|
||||
content: "\f348";
|
||||
display: inline-block;
|
||||
color: #00a0d2;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.health-check-body .fail::before,
|
||||
.health-check-body .error::before {
|
||||
content: "\f335";
|
||||
display: inline-block;
|
||||
color: #dc3232;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.site-health-copy-buttons {
|
||||
|
2
wp-admin/css/site-health-rtl.min.css
vendored
2
wp-admin/css/site-health-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -153,32 +153,23 @@
|
||||
.health-check-body .pass::before,
|
||||
.health-check-body .good::before {
|
||||
content: "\f147";
|
||||
display: inline-block;
|
||||
color: #46b450;
|
||||
font-family: dashicons;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.health-check-body .warning::before {
|
||||
content: "\f460";
|
||||
display: inline-block;
|
||||
color: #ffb900;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.health-check-body .info::before {
|
||||
content: "\f348";
|
||||
display: inline-block;
|
||||
color: #00a0d2;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.health-check-body .fail::before,
|
||||
.health-check-body .error::before {
|
||||
content: "\f335";
|
||||
display: inline-block;
|
||||
color: #dc3232;
|
||||
font-family: dashicons;
|
||||
}
|
||||
|
||||
.site-health-copy-buttons {
|
||||
|
2
wp-admin/css/site-health.min.css
vendored
2
wp-admin/css/site-health.min.css
vendored
File diff suppressed because one or more lines are too long
@ -889,7 +889,7 @@ class WP_Site_Health {
|
||||
$result['status'] = 'recommended';
|
||||
}
|
||||
|
||||
$failures[ $library ] = "<span class='$class'><span class='screen-reader-text'>$screen_reader</span></span> $message";
|
||||
$failures[ $library ] = "<span class='dashicons $class'><span class='screen-reader-text'>$screen_reader</span></span> $message";
|
||||
}
|
||||
}
|
||||
|
||||
@ -1487,7 +1487,7 @@ class WP_Site_Health {
|
||||
}
|
||||
|
||||
$output .= sprintf(
|
||||
'<li><span class="%s"><span class="screen-reader-text">%s</span></span> %s</li>',
|
||||
'<li><span class="dashicons %s"><span class="screen-reader-text">%s</span></span> %s</li>',
|
||||
esc_attr( $test->severity ),
|
||||
$severity_string,
|
||||
$test->description
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45308';
|
||||
$wp_version = '5.3-alpha-45309';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user