Open maureenlholland opened 2 years ago
Couple of open questions:
Thanks for putting this issue together! As for placement of the button, I would vote for having it appear after a certain height of the viewport rather than all the way down in the footer/end of the page. That way, if it's a long page (i.e. State of Moz), the user has the option to scroll all the way to the top when they're a few sections in.
Please describe the use case(s) for this component
On a long page it is useful to have a quick navigate to top option. (see original bedrock issue: https://github.com/mozilla/bedrock/issues/9910)
The button should not appear on pages that are not long enough to need this option
Please provide any designs or previous implementations of the proposed component
potential to use Neutral button styling: https://protocol.mozilla.org/components/detail/button--neutral.html
Please describe what this component does in the following conditions
Please provide examples of this type of component in use in non-Mozilla web properties
Image examples and general best practices here: https://www.nngroup.com/articles/back-to-top/
Is the development of this component a blocking dependency for other work? Please explain if so
Protocol team has come to consensus on need after discussion on longstanding bedrock issue. It is not blocking but would be a good UX improvement on pages such as https://www.mozilla.org/en-US/firefox/privacy/book/