Skip to content

Scroll to Top button not available on Cookie Policy page #1036

@Eshajha19

Description

@Eshajha19

Title

Scroll to Top button not working on Cookie Policy page

Description

The Scroll to Top button is not functioning properly on the Cookie Policy page. Since the page contains long content, users need an easy way to quickly return to the top, but the button either does not appear or does not work when clicked.

Steps to Reproduce

  1. Open the Cookie Policy page.
  2. Scroll down through the content.
  3. Look for the Scroll to Top button.
  4. Click the button (if visible).

Expected Behavior

  • The Scroll to Top button should appear after the user scrolls down.
  • Clicking the button should smoothly scroll the page back to the top.

Actual Behavior

  • The button does not appear, or
  • It appears but does not scroll the page to the top.

Suggested Fix

  • Add a scroll event listener to detect when the user scrolls past a certain point.
  • Toggle the visibility of the Scroll to Top button.
  • Use window.scrollTo({ top: 0, behavior: "smooth" }) to implement smooth scrolling.

Page

Cookie Policy page

Environment

  • Browser: All major browsers
  • Device: Desktop and Mobile

Additional Context

This feature would improve usability for long policy pages such as the Cookie Policy where users may need to navigate back to the top quickly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions