From 253c7f03cc882819ff45877a782e7c945b79869c Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 19 Oct 2017 17:56:56 +0000 Subject: [PATCH] Customize: Fix rendering issues in theme browsing when opening theme details or performing search in Safari. Props sayedwp. See #37661. Fixes #42052. git-svn-id: https://develop.svn.wordpress.org/trunk@41948 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/customize-controls.css | 4 ++++ src/wp-admin/js/customize-controls.js | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css index 12347f1630..e1a6d27122 100644 --- a/src/wp-admin/css/customize-controls.css +++ b/src/wp-admin/css/customize-controls.css @@ -2317,6 +2317,10 @@ p.customize-section-description { z-index: -1; } +.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { + overflow: visible; +} + .wp-customizer .theme-overlay .theme-backdrop { background: rgba( 238, 238, 238, 0.75 ); position: fixed; diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 22fc84e683..71b264a72d 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -3065,13 +3065,17 @@ .addClass( 'in-themes-panel' ) .delay( 200 ).find( '.customize-themes-full-container' ).addClass( 'animate' ); + _.delay( function() { + overlay.addClass( 'themes-panel-expanded' ); + }, 200 ); + // Automatically open the installed themes section (except on small screens). if ( 600 < window.innerWidth ) { api.section( 'installed_themes' ).expand(); } } else { overlay - .removeClass( 'in-themes-panel' ) + .removeClass( 'in-themes-panel themes-panel-expanded' ) .find( '.customize-themes-full-container' ).removeClass( 'animate' ); } },