Accessibility: Administration: Remove <strong> tags from labels on plugin/theme editor screens.

If every single label is emphasized with a `<strong>` tag, none of them is really emphasized anymore.

This removes the tags in favor of CSS styling, for consistency with the other labels on the screen.

Props chemiker, audrasjb, mukesh27, paaljoachim, estelaris, ibdz, SergeyBiryukov.
Fixes #52232.
Built from https://develop.svn.wordpress.org/trunk@49958


git-svn-id: http://core.svn.wordpress.org/trunk@49657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-01-13 14:08:10 +00:00
parent 001dad10c6
commit c5d1214607
7 changed files with 15 additions and 9 deletions

View File

@ -3291,11 +3291,15 @@ img {
display: none;
}
#theme-plugin-editor-selector,
#theme-plugin-editor-label,
#documentation label {
font-weight: 600;
}
#theme-plugin-editor-label {
display: inline-block;
margin-bottom: 1em;
font-weight: 600;
}
/* rtl:ignore */
@ -3391,7 +3395,6 @@ img {
#documentation label {
line-height: 1.8;
vertical-align: baseline;
font-weight: 600;
}
.fileedit-sub {

File diff suppressed because one or more lines are too long

View File

@ -3290,11 +3290,15 @@ img {
display: none;
}
#theme-plugin-editor-selector,
#theme-plugin-editor-label,
#documentation label {
font-weight: 600;
}
#theme-plugin-editor-label {
display: inline-block;
margin-bottom: 1em;
font-weight: 600;
}
/* rtl:ignore */
@ -3390,7 +3394,6 @@ img {
#documentation label {
line-height: 1.8;
vertical-align: baseline;
font-weight: 600;
}
.fileedit-sub {

File diff suppressed because one or more lines are too long

View File

@ -216,7 +216,7 @@ $content = esc_textarea( $content );
</div>
<div class="alignright">
<form action="plugin-editor.php" method="get">
<strong><label for="plugin"><?php _e( 'Select plugin to edit:' ); ?> </label></strong>
<label for="plugin" id="theme-plugin-editor-selector"><?php _e( 'Select plugin to edit:' ); ?> </label>
<select name="plugin" id="plugin">
<?php
foreach ( $plugins as $plugin_key => $a_plugin ) {

View File

@ -222,7 +222,7 @@ if ( $file_description !== $file_show ) {
</div>
<div class="alignright">
<form action="theme-editor.php" method="get">
<strong><label for="theme"><?php _e( 'Select theme to edit:' ); ?> </label></strong>
<label for="theme" id="theme-plugin-editor-selector"><?php _e( 'Select theme to edit:' ); ?> </label>
<select name="theme" id="theme">
<?php
foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_theme ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49957';
$wp_version = '5.7-alpha-49958';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.