Skip to content

Commit b0000eb

Browse files
make sure patterns is selected
1 parent 7d0dfb8 commit b0000eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/guided-modal-tour/tours/design-library.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export const designLibrary = {
77
// Force show the tour if there is a GET parameter tour=design-library
88
return window?.location?.search?.includes( 'tour=design-library' ) ? true : null
99
},
10+
initialize: () => {
11+
// Make sure the patterns tab is selected
12+
document.querySelector( '.ugb-modal-design-library button[value="patterns"]:not(.is-primary)' )?.click()
13+
},
1014
steps: [
1115
{
1216
title: '👋 ' + __( 'Welcome to Your Design Library', i18n ),

0 commit comments

Comments
 (0)