From f87265d0447d942031d1b11f9d397e423bfc130d Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Tue, 16 Feb 2021 01:21:08 +1300 Subject: [PATCH] Add z-index to fig caption to make sure it is still selectable over absolute 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 --- packages/block-library/src/gallery/editor.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/gallery/editor.scss b/packages/block-library/src/gallery/editor.scss index 1b047b4e2b8f6f..817f65a62327b0 100644 --- a/packages/block-library/src/gallery/editor.scss +++ b/packages/block-library/src/gallery/editor.scss @@ -51,6 +51,9 @@ figure.wp-block-gallery { left: 0; z-index: 1; } + figcaption { + z-index: 2; + } } figure.is-transient img {