A new version of the SharePoint Framework Scroll to Top extension was released to scroll to the top of the content pages including lists/libraries and any modern page of SharePoint
New version of Scroll to Top - v1.1.0
This release includes a feature to specify a custom image rather than using Fluent UI icons as well as some other improvements.
Image URL as Icon
If the panoply of UI Fluent Icons is not sufficient for you, you can now specify the URL of you own image / icon into the property of the extension. To use it, simply add the property
buttonImage and specify the image URL accessible for all of your users.
If you use both
I will try to include more tests for each new version in order to reach 100%.
In addition, the code coverage helped me finding solutions for some potential issues and improvements.
- Code refactoring and optimization
- Add some CI verification during a MR
Hoping this post will help you 😉