docs: add back to top button by Tanujkanti4441 · Pull Request #16979 · eslint/eslint (original) (raw)

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[x] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

Added a back to top button on docs pages for below 1400px screen size and gave it a classname 'scroll-up-btn', added the scroll up button related JS (made a new file) and CSS.

for light mode

Screenshot 2023-03-12 144538

for dark mode

Screenshot 2023-03-12 144603

#### Is there anything you'd like reviewers to focus on? PR is related to the issue #16932.