Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.44 KB

CHANGELOG.md

File metadata and controls

68 lines (44 loc) · 2.44 KB

Changelog

This project adheres to Semantic Versioning.

Improvements

Improvements

  • remove dependencies which were actually dev dependencies - 9a5ede5

Fix

  • modularize lodash' custom build used in this component - 7e720dd

Improvements

  • fix: add display none to fallback element to prevent style override (hidden attribute gets overridden by display flex). - 9a3fc89
  • fix: supports class back-to-top-fallback for the fallback element selection. - 2df7e06
<back-to-top throttle="350">
    <a href="#" class="back-to-top-fallback" style="position: fixed;">back-to-top</a>
    <template>
        button content here
    </template>
</back-to-top>

Added

  • Fallback anchor link support when javascript can't execute. (#5)
  • Customizable button content 83dfe0e.
<back-to-top throttle="350">
    <a href="#" style="position: fixed; left: 1rem; bottom: 2rem;">back-to-top</a>
    <template>
        button content here
    </template>
</back-to-top>

Added

  • v2.0 - throttle rate modification support via attribute (#2)

Breaking Change 🚧

  • Moved away from the is attribute (safari doesn't support it) and refactored the component to be an autonomous custom element by just extending the HTMLElement class. See discussion #1.
  • With this change, you have to define your element in HTML as shown below:
<back-to-top throttle="400"></back-to-top>