Skip to content

feat(site): add scroll-to-top button for improved navigation#19

Open
Mayankaggarwal8055 wants to merge 1 commit intoapache:asf-sitefrom
Mayankaggarwal8055:added-scroll-button
Open

feat(site): add scroll-to-top button for improved navigation#19
Mayankaggarwal8055 wants to merge 1 commit intoapache:asf-sitefrom
Mayankaggarwal8055:added-scroll-button

Conversation

@Mayankaggarwal8055
Copy link

Summary

This PR adds a scroll-to-top button to improve navigation on long documentation and example pages.

Details

  • Displays button after user scrolls down
  • Enables smooth scrolling back to top
  • Integrated across layout templates (basic, doc, example)

Motivation

Documentation pages can become lengthy, requiring excessive manual scrolling.
This enhancement improves usability and user experience without affecting existing layout structure.

Testing

Tested locally across affected layouts to ensure:

  • Button visibility triggers correctly on scroll
  • Smooth scrolling behavior works as expected
  • No layout breakage introduced

Fixes: apache/echarts#21516

@Mayankaggarwal8055
Copy link
Author

@apache/echarts-website-maintainers

Fixes apache/echarts#21516 (UX enhancement for echarts.apache.org)

Ready for review! ✅

  • 3 layouts updated (basic/example/doc.html)
  • Mobile responsive Scroll-To-Top button
  • Production-ready + fully tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant