CyCraft / planetar

A Vue framework for creating a design system styleguide with interactive component explorer 🪐

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

perf(markdown): replace scroll util with native element.scrollIntoView

mesqueeb opened this issue · comments

use
element.scrollIntoView({ behavior: "smooth" })

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView

write in component README (jsdoc above export default) that safari needs polyfill:
https://github.com/iamdustan/smoothscroll

and example of how to install it.

this is not yet necessary, 'cause it sounds just like a time suck without that much benefit