Skip to content

Commit

Permalink
Add z-index to fig caption to make sure it is still selectable over a…
Browse files Browse the repository at this point in the history
…bsolute positioned border. (#28992)

#27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected.

This PR just adds a z-index to caption also so it sits over the border.

Co-authored-by: Glen Davies <glen.davies@a8c.com>
  • Loading branch information
2 people authored and ockham committed Feb 15, 2021
1 parent 9bcea8a commit 98cc347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ figure.wp-block-gallery {
left: 0;
z-index: 1;
}
figcaption {
z-index: 2;
}
}

figure.is-transient img {
Expand Down

0 comments on commit 98cc347

Please sign in to comment.