Make WordPress Core


Ignore:
Timestamp:
08/19/2019 04:14:38 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Improve settings tables and forms after [45403].

  • adds role="presentation" to the edit comment table
  • removes a few pointless <fieldset> elements
  • adds a few missing <label> elements
  • adds the CSS class class="td-full" to table rows spanning to multiple cells
  • adds explicit scope="row" attribute to the table headers in options-permalink.php: this table is better communicated as data table
  • uses consistent label association in the "Privacy Settings" page
  • in the installation page "Set up your database connection": associates descriptions to their inout fields using aria-describedby
  • improves the link to gravatar.com in the user-edit.php page

Props afercia.
Merges [45416] to the 5.2 branch.
See #46899.
Fixes #47390.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/includes/network.php

    r45834 r45835  
    348348                <?php endif; ?>
    349349                        <tr>
    350                                 <th scope='row'><?php esc_html_e( 'Network Title' ); ?></th>
    351                                 <td>
    352                                         <input name='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' />
     350                                <th scope='row'><label for="sitename"><?php esc_html_e( 'Network Title' ); ?></label></th>
     351                                <td>
     352                                        <input name='sitename' id='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' />
    353353                                        <p class="description">
    354354                                                <?php _e( 'What would you like to call your network?' ); ?>
    … …  
    357357                        </tr>
    358358                        <tr>
    359                                 <th scope='row'><?php esc_html_e( 'Network Admin Email' ); ?></th>
    360                                 <td>
    361                                         <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />
     359                                <th scope='row'><label for="email"><?php esc_html_e( 'Network Admin Email' ); ?></label></th>
     360                                <td>
     361                                        <input name='email' id='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />
    362362                                        <p class="description">
    363363                                                <?php _e( 'Your email address.' ); ?>
Note: See TracChangeset for help on using the changeset viewer.