Accessibility: Make the inline uploader button a real button.
See `wp.media.view.UploaderWindow`. Fixes #39305. git-svn-id: https://develop.svn.wordpress.org/trunk@40021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
856416049d
commit
fbbf3578b8
|
@ -8385,7 +8385,7 @@ UploaderWindow = wp.media.View.extend({
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
var uploader;
|
var uploader;
|
||||||
|
|
||||||
this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
|
this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
|
||||||
|
|
||||||
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
||||||
dropzone: this.$el,
|
dropzone: this.$el,
|
||||||
|
|
|
@ -25,7 +25,7 @@ UploaderWindow = wp.media.View.extend({
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
var uploader;
|
var uploader;
|
||||||
|
|
||||||
this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
|
this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
|
||||||
|
|
||||||
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
||||||
dropzone: this.$el,
|
dropzone: this.$el,
|
||||||
|
|
Loading…
Reference in New Issue