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

Fixes #481 Spotlight | Custom scroll targets #482

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

aVileBroker
Copy link
Contributor

No description provided.

…lable element

Instead of always trying to scroll the window to highlight the target, it now finds the nearest
scrollable element and scrolls that instead. Many times, that will be the window/html element

fixes #481
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 24, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3da4ece:

Sandbox Source
React Configuration

src/components/Spotlight/Spotlight.stories.tsx Outdated Show resolved Hide resolved
src/components/Spotlight/Spotlight.tsx Outdated Show resolved Hide resolved
src/components/Spotlight/Spotlight.tsx Outdated Show resolved Hide resolved
aVileBroker and others added 3 commits October 24, 2023 14:10
Co-authored-by: Dawson Booth <dawsontaylorbooth@gmail.com>
Co-authored-by: Dawson Booth <dawsontaylorbooth@gmail.com>
@aVileBroker aVileBroker merged commit ccb623a into master Oct 24, 2023
2 checks passed
@aVileBroker aVileBroker deleted the 481-custom-scroll-targets branch October 24, 2023 19:44
@HeadstormOps
Copy link

🎉 This PR is included in version 1.27.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants