Skip to content

Commit ab1fd2a

Browse files
fix (design library): spinner does not hide
1 parent faffdb0 commit ab1fd2a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/design-library-list/design-preview.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ export const DesignPreview = ( {
9090

9191
setIsLoading( true )
9292

93-
const ric = window.requestIdleCallback || ( cb => setTimeout( cb, designIndex * 20 ) )
93+
// Comment this since our requestIdleCallback is not called
94+
// const ric = window.requestIdleCallback || ( cb => setTimeout( cb, designIndex * 20 ) )
95+
const ric = cb => setTimeout( cb, designIndex * 20 )
9496
const sanitizedHTML = safeHTML( blocks )
9597

9698
if ( selectedTab !== 'pages' || designIndex < 9 ) {

src/components/design-library-list/editor.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@
243243
width: 100%;
244244
position: absolute;
245245
transition: opacity 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
246-
will-change: opacity;
246+
will-change: opacity;
247247
opacity: 1;
248248
display: flex;
249-
background-color: #fff;
250-
z-index: 1;
249+
// background-color: #fff;
250+
// z-index: 1;
251251
&.stk-hide-spinner {
252252
opacity: 0;
253-
z-index: -1;
253+
// z-index: -1;
254254
}
255255
.components-spinner {
256256
margin: auto;

0 commit comments

Comments
 (0)