From e8b26e0a84c1276ec324bf01e04a6f7c3a971d97 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Thu, 10 Sep 2026 10:04:50 +0530 Subject: [PATCH] Gallery: Do not overlap title and caption --- src/wp-includes/css/media-views.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 6748a50f00c57..aff505b63c5c8 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -1029,6 +1029,15 @@ select#media-attachment-filters ~ select#media-attachment-date-filters { font-weight: 600; } +/* Offset by the .describe input height so the overlay does not cover it. */ +.wp-core-ui .attachment:has(.describe):not(:has(.filename))::after { + bottom: calc(8px + 40px); /* 8px padding + 40px input height */ +} + +.wp-core-ui .attachment .describe { + z-index: 10; +} + /* Do not show the aria-label overlay on thumbnails in the gallery selection strip. */ .wp-core-ui .media-selection .attachment::after { content: none;