Make WordPress Core


Ignore:
Timestamp:
06/25/2015 01:54:36 AM (9 years ago)
Author:
azaozz
Message:

Press This, split button: wrap the sub-buttons in an unordered list to aid accessibility.
Props afercia. See #32757.

File:
1 edited

Legend:

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

    r32921 r32934  
    14591459                    </button>
    14601460                </div>
    1461                 <div class="split-button-body">
    1462                     <button type="button" class="button-subtle draft-button split-button-option" aria-live="polite"><?php _e( 'Save Draft' ); ?></button>
    1463                     <a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link split-button-option" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
    1464                     <button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button>
    1465                 </div>
     1461                <ul class="split-button-body">
     1462                    <li><button type="button" class="button-subtle draft-button split-button-option" aria-live="polite"><?php _e( 'Save Draft' ); ?></button></li>
     1463                    <li><a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link split-button-option" target="_blank"><?php _e( 'Standard Editor' ); ?></a></li>
     1464                    <li><button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button></li>
     1465                </ul>
    14661466            </div>
    14671467        </div>
Note: See TracChangeset for help on using the changeset viewer.