SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
738 stars 383 forks source link

Feature: Back to top [was in code review] #8440

Open lohithosur opened 4 years ago

lohithosur commented 4 years ago

The more description is provided in the following link: https://cxwiki.sap.com/pages/viewpage.action?spaceKey=spar&title=Feature%3A+Back+to+top

The goal is to display a simple way to go back to the top of the page.

CMS-based Back-to-top link above footer Floating back-to-top link at bottom right corner, when you start scrolling down The user experience is important for mobile, so focus on that. But it should work both in desktop, tablet, mobile.

As this is CMS-based, to enable it, you add the component (to the footer?). To disable it, remove the component.

Some things to think about:

Likely you only want to use this when using infinite scroll. We can focus the scope on that implementation. Tight scope always good. However it would be nice if you could add this feature on any page. For example, what if my cart has 100 items? This is why it being cms-based would help here, you can add the cms component to specific pages.

lohithosur commented 4 years ago

I have completed first draft and created a PR; Few points:

I need someone to review my code. I need some information like:

Regards, Lohit

lohithosur commented 4 years ago
lohithosur commented 4 years ago

Ready for code review.

Xymmer commented 3 years ago

removed the milestone, it was in code review in tribe board