Skip to content

Commit 5b2bb67

Browse files
author
bfintal@gmail.com
committed
fix: typos
1 parent 7f53fa8 commit 5b2bb67

4 files changed

Lines changed: 21 additions & 15 deletions

File tree

src/lazy-components/modal-tour/tours/advanced-hover-states.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const advancedHoverStates = {
5656
},
5757
steps: [
5858
{
59-
title: __( 'Advnaced Hover State Styling', i18n ),
59+
title: __( 'Advanced Hover State Styling', i18n ),
6060
description: createInterpolateElement(
6161
__( 'Learn how to style containers and their contents together by applying hover effects to multiple blocks at once.', i18n ),
6262
{ strong: <strong /> }

src/lazy-components/modal-tour/tours/block-backgrounds.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ export const blockBackgrounds = {
9393
}
9494
},
9595
postStep: () => {
96-
// Click the tab
97-
document.querySelector( '.edit-post-sidebar__panel-tab.ugb-tab--style:not(.is-active)' )?.click()
96+
setTimeout( () => {
97+
// Click the tab
98+
document.querySelector( '.edit-post-sidebar__panel-tab.ugb-tab--style:not(.is-active)' )?.click()
99+
}, 100 )
98100
},
99101
},
100102
{
@@ -138,12 +140,14 @@ export const blockBackgrounds = {
138140
nextEvent: 'mousedown',
139141
preStep: () => {
140142
// Toggle background on
141-
document.querySelector( '.ugb-block-background-panel:not(is-opened) button' )?.click()
142-
document.querySelector( '.ugb-block-background-panel .ugb-toggle-panel-form-toggle:not(is-checked) input' )?.click()
143+
document.querySelector( '.ugb-block-background-panel:not(.is-opened) button' )?.click()
144+
document.querySelector( '.ugb-block-background-panel .ugb-toggle-panel-form-toggle:not(.is-checked) input' )?.click()
143145
},
144146
postStep: () => {
145-
// Click the tab
146-
document.querySelector( '.ugb-block-background-panel .stk-color-palette-control .block-editor-panel-color-gradient-settings__dropdown:not(is-open)' )?.click()
147+
setTimeout( () => {
148+
// Click the tab
149+
document.querySelector( '.ugb-block-background-panel .stk-color-palette-control .block-editor-panel-color-gradient-settings__dropdown:not(.is-open)' )?.click()
150+
}, 100 )
147151
},
148152
},
149153
{
@@ -158,8 +162,10 @@ export const blockBackgrounds = {
158162
// nextEvent: 'mousedown',
159163
// nextEventTarget: '.stk-color-palette-control__popover-content *',
160164
postStep: () => {
161-
// Click the color picker
162-
document.querySelector( '.ugb-block-background-panel .stk-color-palette-control .block-editor-panel-color-gradient-settings__dropdown.is-open' )?.click()
165+
setTimeout( () => {
166+
// Click the color picker
167+
document.querySelector( '.ugb-block-background-panel .stk-color-palette-control .block-editor-panel-color-gradient-settings__dropdown.is-open' )?.click()
168+
}, 100 )
163169
},
164170
},
165171
{
@@ -193,8 +199,8 @@ export const blockBackgrounds = {
193199
description: __( 'Great job! You\'ve learned how to add and customize block backgrounds and containers. These features are available in most Stackable blocks, helping you create beautiful, consistent layouts with ease.', i18n ),
194200
preStep: () => {
195201
// Toggle background on
196-
document.querySelector( '.ugb-panel--container-size:not(is-opened)' )?.click()
197-
document.querySelector( '.ugb-panel--container-size .ugb-toggle-panel-form-toggle:not(is-checked) input' )?.click()
202+
document.querySelector( '.ugb-panel--container-size:not(.is-opened)' )?.click()
203+
document.querySelector( '.ugb-panel--container-size .ugb-toggle-panel-form-toggle:not(.is-checked) input' )?.click()
198204
},
199205
},
200206
{

src/lazy-components/modal-tour/tours/global-color-schemes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const globalColorSchemes = {
232232
{
233233
title: __( 'Color Schemes in Action', i18n ),
234234
description: __( 'Color Schemes help maintain consistency. With Block Background enabled, all the inner blocks adjust to have different colors applied automatically.', i18n ),
235-
help: createInterpolateElement( __( 'Disable the <strong>Block Background</strong> and see how the block colors changes back to the default color scheme. Click next to continue.', i18n ), {
235+
help: createInterpolateElement( __( 'Disable the <strong>Block Background</strong> and see how the block colors change back to the default color scheme. Click next to continue.', i18n ), {
236236
strong: <strong />,
237237
} ),
238238
anchor: '.ugb-block-background-panel .ugb-toggle-panel-form-toggle',

src/welcome/getting-started.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export const GettingStarted = () => {
345345
>
346346
<div
347347
className="s-getting-started__progress-bar-fill"
348-
style={ { width: `${ ( totalDone / totalGuidedTours ) * 100 }%` } }
348+
style={ { width: `${ totalGuidedTours ? ( totalDone / totalGuidedTours ) * 100 : 0 }%` } }
349349
></div>
350350
</div>
351351
</section>
@@ -366,7 +366,7 @@ export const GettingStarted = () => {
366366
></iframe>
367367
</div>
368368
<h3 id="video-tutorial-title">{ __( 'Getting Started with Stackable', i18n ) }</h3>
369-
<p id="video-tutorial-desc">{ __( 'Watch this video to get started with Stackable in within 5 minutes.', i18n ) }</p>
369+
<p id="video-tutorial-desc">{ __( 'Watch this video to get started with Stackable within 5 minutes.', i18n ) }</p>
370370
</div>
371371
</div>
372372
<div className="s-guided-tours-container" role="list" aria-label={ __( 'Guided Tutorials', i18n ) }>
@@ -434,7 +434,7 @@ export const GettingStarted = () => {
434434
// 's-button--disabled': item.premium && ! isPro,
435435
} ) }
436436
role="button"
437-
tabIndex={ item.premium && ! isPro ? -1 : 0 }
437+
tabIndex={ 0 }
438438
aria-pressed={ !! guidedTourStates?.includes( item.id ) }
439439
aria-label={
440440
`${ item.title }: ${ item.description }` +

0 commit comments

Comments
 (0)