vue-scrollto icon indicating copy to clipboard operation
vue-scrollto copied to clipboard

docs/examples should point to destination element in href attribute as fallback

Open plweil opened this issue 4 years ago • 0 comments
trafficstars

The examples show the anchor element as <a href="#" .... >

If the user doesn't have js, or the script isn't working for some reason, the jump link won't work, and the user will be confused at best. As a fallback, the href attribute should point to the destination element id. That way the jump link will work no matter what.

<a href="#destinationElement" .... >

plweil avatar May 06 '21 13:05 plweil