diff --git a/packages/block-library/src/gallery/editor.scss b/packages/block-library/src/gallery/editor.scss index 4136018059e49..3232b5c37a13e 100644 --- a/packages/block-library/src/gallery/editor.scss +++ b/packages/block-library/src/gallery/editor.scss @@ -12,7 +12,6 @@ ul.wp-block-gallery li { outline: none; } - img:focus, .is-selected { outline: 4px solid theme(primary); } diff --git a/packages/block-library/src/gallery/gallery-image.js b/packages/block-library/src/gallery/gallery-image.js index de18796926500..1d4936d67e02b 100644 --- a/packages/block-library/src/gallery/gallery-image.js +++ b/packages/block-library/src/gallery/gallery-image.js @@ -109,8 +109,9 @@ class GalleryImage extends Component { alt={ alt } data-id={ id } onClick={ this.onImageClick } - tabIndex="0" + onFocus={ this.onImageClick } onKeyDown={ this.onImageClick } + tabIndex="0" aria-label={ ariaLabel } /> { isBlobURL( url ) && }