Make WordPress Core

Changeset 49958


Ignore:
Timestamp:
01/13/2021 02:06:30 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

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

Legend:

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

    r49907 r49958  
    32913291}
    32923292
     3293#theme-plugin-editor-selector,
     3294#theme-plugin-editor-label,
     3295#documentation label {
     3296    font-weight: 600;
     3297}
    32933298
    32943299#theme-plugin-editor-label {
    32953300    display: inline-block;
    32963301    margin-bottom: 1em;
    3297     font-weight: 600;
    32983302}
    32993303
     
    33913395    line-height: 1.8;
    33923396    vertical-align: baseline;
    3393     font-weight: 600;
    33943397}
    33953398
  • trunk/src/wp-admin/plugin-editor.php

    r49193 r49958  
    217217<div class="alignright">
    218218    <form action="plugin-editor.php" method="get">
    219         <strong><label for="plugin"><?php _e( 'Select plugin to edit:' ); ?> </label></strong>
     219        <label for="plugin" id="theme-plugin-editor-selector"><?php _e( 'Select plugin to edit:' ); ?> </label>
    220220        <select name="plugin" id="plugin">
    221221        <?php
  • trunk/src/wp-admin/theme-editor.php

    r49193 r49958  
    223223<div class="alignright">
    224224    <form action="theme-editor.php" method="get">
    225         <strong><label for="theme"><?php _e( 'Select theme to edit:' ); ?> </label></strong>
     225        <label for="theme" id="theme-plugin-editor-selector"><?php _e( 'Select theme to edit:' ); ?> </label>
    226226        <select name="theme" id="theme">
    227227        <?php
Note: See TracChangeset for help on using the changeset viewer.