nimiq / vue-components

Vue component library for Nimiq ecosystem apps.
https://nimiq.github.io/vue-components/
Apache License 2.0
17 stars 4 forks source link

Tooltip improvements #78

Closed danimoh closed 4 years ago

danimoh commented 4 years ago

Variety of improvements to the tooltip component, see commit history. Notably, this PR also makes the component suitable for more use cases. It can now handle tooltips of arbitrary size, allows for a preferred position, has an inverse theme, can be disabled and has a programmatic api. Additionally, style fixes, code beautifications and performance improvements have been applied. Also the component is now less restrictive in the reference / tooltip setup (supports references that are not the offsetParent of the tooltip and properly updates measurements on update also if the the reference resized). Also this fixes a scroll bar issue which appeared after the vue / dependencies update and can currently be witnessed in the create cashlink flow.

danimoh commented 4 years ago

The behavior that the popup does not close on click was already like this before this PR but I added this feature now.

Unless additional change requests come up, I will merge this PR later today.