Skip to content

Commit

Permalink
fix: confusing tour skip
Browse files Browse the repository at this point in the history
- fixes confusing skip behavior in the product tour intro

- subsequently the message on the first tour item makes a bit more sense
  • Loading branch information
thenick775 committed Sep 21, 2024
1 parent 70dee8a commit 4b32419
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gbajs3/src/components/product-tour/product-tour-intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const steps: Step[] = [
</p>
</>
),
showSkipButton: true,
locale: {
skip: <strong aria-label="Skip">Skip</strong>,
next: <strong aria-label="Skip">Yes</strong>
Expand Down Expand Up @@ -57,14 +58,12 @@ const steps: Step[] = [
</StyledUl>
</>
),
locale: { skip: <strong aria-label="Skip">Skip</strong> },
placement: 'auto',
spotlightPadding: 40,
target: '#menu-wrapper'
},
{
content: <p>Use the hamburger button to show and hide the menu</p>,
locale: { skip: <strong aria-label="Skip">Skip</strong> },
placement: 'right',
spotlightPadding: 10,
target: '#menu-btn'
Expand All @@ -79,7 +78,6 @@ const steps: Step[] = [
<p>Watch for the red beacons, tap them to continue your tour!</p>
</>
),
locale: { skip: <strong aria-label="Skip">Skip</strong> },
placement: 'center',
target: 'body'
}
Expand All @@ -99,7 +97,6 @@ export const ProductTourIntro = () => {
hideCloseButton
disableScrolling
showProgress
showSkipButton
steps={steps}
styles={{
options: {
Expand Down

0 comments on commit 4b32419

Please sign in to comment.