-
Notifications
You must be signed in to change notification settings - Fork 63
Fix licence information flyout menu alignment #243
Conversation
Hi @0kyn apologies for the delay in reviewing this, I will look today and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @0kyn, I like the approach of setting CSS variables. I made a small change to avoid the computed property event
accessing stuff, which I've actually never seen before, to instead pass the dom node of the ?
icon to the ToolTip as a prop. I did this by using refs
in Vue.
Hi @zackkrida thanks for the trick! It's pretty interesting, I would never thought about this... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing the flyout positioning, it works great! I've added a couple of small changes inline, and will approve after they are fixed.
Co-authored-by: Olga Bulat <obulat@gmail.com>
@obulat I've gone ahead and applied the requested changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for another great contribution!
Fixes
Fixes #219 by @zackkrida
Description
This PR fixes licence information flyout alignement, it makes tooltip dynamically aligned with licence help icon.
Technical details
Computed CSS properties are calculated once
LicenceExplanationTooltip.vue
component is mounted.Some CSS properties related to tooltip box appearance are arbitrary set locally.
Questions
event
fromcomputed()
methods ?data()
method, should it be better to let them defined in<style>...</style>
and get them throughwindow.getComputedStyle(this.$el)
?Screenshots
Desktop
Touch
Checklist
Update index.md
).main
ormaster
).Developer Certificate of Origin
Developer Certificate of Origin