Make WordPress Core


Ignore:
Timestamp:
11/11/2015 12:23:15 AM (9 years ago)
Author:
afercia
Message:

Accessibility: improvements for the taxonomies Quick Edit form.

Changes the "Cancel" and "Update" controls in buttons for better semantics and
accessibility. On cancel and successful saving, moves focus back to the term title
to avoid a focus loss. Dispatches error and success messages to wp.a11y.speak
to give assistive technologies users an audible feedback.

Patch prepared at #wpcdit, first Italian WordPress Contributor Day.

Props garusky, chiara_09.
Fixes #34613.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r35241 r35605  
    589589
    590590        <p class="inline-edit-save submit">
    591             <a href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
    592             <a href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
     591            <button type="button" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></button>
     592            <button type="button" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></button>
    593593            <span class="spinner"></span>
    594594            <span class="error" style="display:none;"></span>
Note: See TracChangeset for help on using the changeset viewer.