WordPress.org

Make WordPress Core

Changeset 32934


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

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

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r32922 r32934  
    406406    min-width: 180px;
    407407    max-width: 100%;
     408    margin: 0;
    408409    padding: 8px;
     410    list-style: none;
    409411    -webkit-box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
    410412    box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 );
  • 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.