Make WordPress Core


Ignore:
Timestamp:
02/23/2015 02:28:41 AM (11 years ago)
Author:
jeremyfelt
Message:

Provide proper label associations and descriptions throughout the network admin

  • Add labels previously missing for many inputs throughout the network admin screen.
  • Add proper aria-describedby attributes to provide better descriptions.
  • Wrap grouped inputs with fieldset elements.
  • Remove now unneeded title attributes when appropriate.

Props cfoellmann, afercia, rianrietveld.

Fixes #38406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/user-new.php

    r29966 r31517  
    8888    <table class="form-table">
    8989        <tr class="form-field form-required">
    90             <th scope="row"><?php _e( 'Username' ) ?></th>
    91             <td><input type="text" class="regular-text" name="user[username]" /></td>
     90            <th scope="row"><label for="username"><?php _e( 'Username' ) ?></label></th>
     91            <td><input type="text" class="regular-text" name="user[username]" id="username" /></td>
    9292        </tr>
    9393        <tr class="form-field form-required">
    94             <th scope="row"><?php _e( 'Email' ) ?></th>
    95             <td><input type="text" class="regular-text" name="user[email]" /></td>
     94            <th scope="row"><label for="email"><?php _e( 'Email' ) ?></label></th>
     95            <td><input type="text" class="regular-text" name="user[email]" id="email"/></td>
    9696        </tr>
    9797        <tr class="form-field">
Note: See TracChangeset for help on using the changeset viewer.