Skip to content

Commit

Permalink
Fix DOM order so focus goes through remove control
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 12, 2019
1 parent 880a4bb commit 4c3bbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/gallery-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class GalleryImage extends Component {

return (
<figure className={ className }>
{ href ? <a href={ href }>{ img }</a> : img }
{ isSelected &&
<div className="block-library-gallery-item__inline-menu">
<IconButton
Expand All @@ -137,7 +138,6 @@ class GalleryImage extends Component {
/>
</div>
}
{ href ? <a href={ href }>{ img }</a> : img }
{ ( ! RichText.isEmpty( caption ) || isSelected ) ? (
<RichText
tagName="figcaption"
Expand Down

0 comments on commit 4c3bbbe

Please sign in to comment.