WordPress.org

Make WordPress Core

Ticket #23560: 23560.20.diff

File 23560.20.diff, 444 bytes (added by adamsilverstein, 5 years ago)

media-modal-close focus in setState

  • src/wp-includes/js/media-views.js

     
    304304                        this._state = id;
    305305                        this.state().trigger('activate');
    306306
     307                        // Focus the close button for better accessibility
     308                        $( '.media-modal' ).find( 'a.media-modal-close' ).focus();
     309
    307310                        return this;
    308311                },
    309312