Skip to content

Commit

Permalink
Make image selected onFocus (#14813)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored and aduth committed Apr 16, 2019
1 parent e8f3e68 commit 4bd4280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ul.wp-block-gallery li {
outline: none;
}

img:focus,
.is-selected {
outline: 4px solid theme(primary);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/gallery/gallery-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) && <Spinner /> }
Expand Down

0 comments on commit 4bd4280

Please sign in to comment.