wethegit / component-library

WTC's internal React component library.
https://wethegit.github.io/component-library/
MIT License
0 stars 0 forks source link

[COMP]: fix: remove global smooth scroll #184

Closed andrewrubin closed 2 months ago

andrewrubin commented 2 months ago

Description

This removes the scroll-behavior: smooth declaration from the global CSS resets. This interferes with any rAF-based manipulation of the window scroll location (think, BackToTop), so it's better to not have it at all. If you need smooth scroll going forward, you can either add its CSS, scoped to your specific component, or you can temporarily add a class to the document root which does so.

Does this close any existing issues

Closes #155

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: 1e11cc0b847db9dbc192222766da5b83303c3bbe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR