Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss tour from overlay #2525

Merged
merged 14 commits into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added ability to dismiss tour from overlay
  • Loading branch information
harshilsharma63 committed Mar 8, 2022
commit 725d7d642d4b7b32ed8a2b2e3e0d8dccd0711725
5 changes: 1 addition & 4 deletions webapp/src/components/pulsating_dot/pulsating_dot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
align-items: center;
justify-content: center;
margin-left: auto;

&-clickable {
cursor: pointer;
}
cursor: pointer;

&,
&::before,
Expand Down
14 changes: 10 additions & 4 deletions webapp/src/components/tutorial_tour_tip/tutorial_tour_tip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,16 @@ const TutorialTourTip = ({
<TourTipOverlay
show={!hideBackdrop && show}
onClick={(e) => {
handleEventPropagationAndDefault(e)
handleHide(e)
if (onPunchholeClick) {
onPunchholeClick(e)
if (skipCategoryFromBackdrop) {
e.preventDefault()
e.stopPropagation()
handleSendToNextTour(tutorialCategory)
} else {
handleEventPropagationAndDefault(e)
handleHide(e)
if (onPunchholeClick) {
onPunchholeClick(e)
}
}
}}
>
Expand Down