sourcefuse / sourcefuse/arc-ng-components

bug(user-onboarding): allow scrollTo option to accept object config

Open Beginner friendly
#81 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
10h 8m
Merged PRs (30d)
2

Description

Describe the bug
The scrollTo option in TourStep attachTo configuration only accepts boolean values, limiting scroll behavior customization.

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to configure a tour step with advanced scroll options using an object config
  2. See type error indicating only boolean is accepted

Expected behavior
The scrollTo option should accept both boolean and object configurations for flexible scroll behavior.

Additional context
Modified TourStep interface to extend scrollTo type from boolean to boolean | object

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the TourStep interface and its attachTo configuration, then inspect how scrollTo is currently typed. Update the type so both boolean and object configurations are accepted, and verify that TypeScript type checking accepts both forms without rejecting the existing boolean usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.