fundamental
fundamental copied to clipboard
Docs: implement popper.js
For documentation purposes, we'd like to implement popper.js to demonstrate a variety of different positioning related functions of the Popover
component. Currently, all of the functional implementations are headed in the direction of relying on popper.js for their components.
Popper.js: https://popper.js.org/
Since we specifically develop and provide a SCSS/CSS library, we are simply implementing this as a suggestion for others to follow, and have functional documentation.
Quick note: the animation on the popover fails with popper.js since it's for all properties and popper works by setting a translate3d transform. Maybe whoever picks this up could investigate this?
@MattL75 ~ That's a flaw in the popper.js framework itself that you guys have experienced?
No it's just that the fundamental popover has transition: all 0.125s so it also animated the translate that Popper needs to do the positioning, leading to some weird behaviour when it opens.
quick note here. We are currently using local CSS in fundamental-react to support popperjs
see: https://github.com/SAP/fundamental-react/pull/467/files#diff-5092b9d9c20cc3cee7ff65990478aa15
It would be idea if these styles transitioned ownership to fundamental. You will need them to demonstrate popper in your docs as well.
@bcullman ~ perfect! Thanks for sharing.