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.

git-svn-id: https://develop.svn.wordpress.org/trunk@49958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-01-13 14:06:30 +00:00
parent 98b6d33564
commit 72ad4e1bcf
3 changed files with 7 additions and 4 deletions

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 {

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 ) {