Make WordPress Core


Ignore:
Timestamp:
05/29/2014 03:38:31 AM (11 years ago)
Author:
helen
Message:

At long last, improved keyboard accessibility for the media modal.

props lessbloat, grahamarmfield, sharonaustin, bramd.
see #23560.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r28581 r28607  
    120120        $class .= ' ie7';
    121121    ?>
     122    <!--[if lte IE 8]>
     123    <style>
     124        .attachment:focus {
     125            outline: #1e8cbe solid;
     126        }
     127        .selected.attachment {
     128            outline: #1e8cbe solid;
     129        }
     130    </style>
     131    <![endif]-->
    122132    <script type="text/html" id="tmpl-media-frame">
    123133        <div class="media-frame-menu"></div>
     
    239249                <div class="thumbnail">
    240250                    <div class="centered">
    241                         <img src="{{ data.size.url }}" draggable="false" />
     251                        <img src="{{ data.size.url }}" draggable="false" alt="" />
    242252                    </div>
    243253                </div>
     
    254264
    255265            <# if ( data.buttons.check ) { #>
    256                 <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>"><div class="media-modal-icon"></div></a>
     266                <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
    257267            <# } #>
    258268        </div>
Note: See TracChangeset for help on using the changeset viewer.