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

feat(botonic-react): Replace scroll behavior in scrollIntoView for a CSS property #2953

Open
wants to merge 1 commit into
base: master-lts
Choose a base branch
from

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Dec 20, 2024

Description

Replace the behavior: 'smooth' attribute set to the scrollIntoView calls for a scroll-behavior: 'smooth' CSS property set in the ScrollableMessageList component.

This way we ensure to have the same behavior as before without affecting the main website.

Context

Under some circumstances, the scrollIntoView function with the smooth behavior was affecting the main website and the scroll was being also made there.

Approach taken / Explain the design

To document / Usage example

Testing

The pull request has no tests.

…d add it as a CSS property in the ScrollableMessageList component
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.

3 participants