canonical / canonical/react-components

Should `Pagination` `scrollToTop` be more localized?

Open
#1,186 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
151
Forks
74
Avg merge
1d 2h
Merged PRs (30d)
11

Description

When using the `Pagination` attribute `scrollToTop`, for example, in https://snapcraft.io/store?q=a&page=7, clicking another page scrolls all the way to the top, and not to the beginning of the `PackageList`. Shouldn't it be better to have the option inside Pagination of scrolling to a specific component?

![Image](https://github.com/user-attachments/assets/77306c4a-5ca8-418a-8eaa-65967543a0e9)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.