WordPress.org

Make WordPress Core

Changeset 28023


Ignore:
Timestamp:
04/07/2014 10:27:06 PM (4 years ago)
Author:
wonderboymusic
Message:

Make playlist tracks keyboard-accessible.

Fixes #27644.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css

    r27895 r28023  
    105105    font-size: 14px;
    106106    line-height: 1.5;
     107}
     108
     109.wp-playlist-item .wp-playlist-caption {
     110    text-decoration: none;
     111    color: #000;
    107112}
    108113
  • trunk/src/wp-includes/js/mediaelement/wp-playlist.js

    r27895 r28023  
    108108
    109109        clickTrack : function (e) {
     110            e.preventDefault();
     111
    110112            this.index = this.$( '.wp-playlist-item' ).index( e.currentTarget );
    111113            this.setCurrent();
  • trunk/src/wp-includes/media.php

    r28004 r28023  
    10281028<script type="text/html" id="tmpl-wp-playlist-item">
    10291029    <div class="wp-playlist-item">
    1030         <div class="wp-playlist-caption">
     1030        <a class="wp-playlist-caption" href="{{ data.src }}">
    10311031            {{ data.index ? ( data.index + '. ' ) : '' }}
    10321032            <# if ( data.caption ) { #>
     
    10381038                <# } #>
    10391039            <# } #>
    1040         </div>
     1040        </a>
    10411041        <# if ( data.meta.length_formatted ) { #>
    10421042        <div class="wp-playlist-item-length">{{ data.meta.length_formatted }}</div>
Note: See TracChangeset for help on using the changeset viewer.