WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/23/2015 02:28:41 AM (7 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/includes/dashboard.php

    r31508 r31517  
    380380    <form action="<?php echo network_admin_url('users.php'); ?>" method="get">
    381381        <p>
    382             <input type="search" name="s" value="" size="30" autocomplete="off" />
     382            <label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label>
     383            <input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
    383384            <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
    384385        </p>
     
    387388    <form action="<?php echo network_admin_url('sites.php'); ?>" method="get">
    388389        <p>
    389             <input type="search" name="s" value="" size="30" autocomplete="off" />
     390            <label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label>
     391            <input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
    390392            <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
    391393        </p>
Note: See TracChangeset for help on using the changeset viewer.