WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2012 12:15:15 AM (8 years ago)
Author:
azaozz
Message:

Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).

Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.

Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.

See #21340.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r21219 r21311  
    496496
    497497                    <ul id="category-tabs" class="category-tabs">
    498                         <li class="tabs"><a href="#category-all" tabindex="3"><?php echo $tax->labels->all_items; ?></a></li>
    499                         <li class="hide-if-no-js"><a href="#category-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
     498                        <li class="tabs"><a href="#category-all"><?php echo $tax->labels->all_items; ?></a></li>
     499                        <li class="hide-if-no-js"><a href="#category-pop"><?php _e( 'Most Used' ); ?></a></li>
    500500                    </ul>
    501501
     
    518518                        <div id="category-adder" class="wp-hidden-children">
    519519                            <h4>
    520                                 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3">
     520                                <a id="category-add-toggle" href="#category-add" class="hide-if-no-js">
    521521                                    <?php printf( __( '+ %s' ), $tax->labels->add_new_item ); ?>
    522522                                </a>
     
    524524                            <p id="category-add" class="category-add wp-hidden-child">
    525525                                <label class="screen-reader-text" for="newcategory"><?php echo $tax->labels->add_new_item; ?></label>
    526                                 <input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" tabindex="3" aria-required="true"/>
     526                                <input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/>
    527527                                <label class="screen-reader-text" for="newcategory_parent">
    528528                                    <?php echo $tax->labels->parent_item_colon; ?>
    529529                                </label>
    530                                 <?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;', 'tab_index' => 3 ) ); ?>
    531                                 <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" tabindex="3" />
     530                                <?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;' ) ); ?>
     531                                <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
    532532                                <?php wp_nonce_field( 'add-category', '_ajax_nonce-add-category', false ); ?>
    533533                                <span id="category-ajax-response"></span>
     
    549549                            <div class="ajaxtag">
    550550                                <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
    551                                 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
     551                                <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" />
    552552                            </div>
    553553                        </div>
Note: See TracChangeset for help on using the changeset viewer.