From 98cc347979829daf1fc144e5736c2bde04c46b75 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 1b047b4e2b8f6..817f65a62327b 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 {