-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(popover, hovercard): DLT-2245 separate Hovercard from Popover #606
Conversation
6289190
to
94c58e4
Compare
94c58e4
to
8cf047e
Compare
Please add either the |
I'm going to run visual tests here just to make sure |
Couple errors, but don't seem to be anything to do with your change. |
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.
looks pretty good IMO, just one question.
this.isOpen = true; | ||
}, this.enterDelay); | ||
onMouseEnter () { | ||
this.$emit('mouseenter-popover'); |
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.
Should the event be called "mouseenter-popover-anchor" since there could also be the case of the mouse entering the popover dialog?
92beb87
to
d6ae060
Compare
✔️ Deploy previews ready! |
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.
Working perfectly, nice clean up, thanks!
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.
Sorry I missed re-reviewing this. Looks good!
Separate Hovercard from Popover
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
📖 Jira Ticket
DLT-2245
📖 Description
Removes the Hovercard logic from Popover to Hovercard. Now the hover mouse events are controlled by the Hovercard and state is in sync via the
open
prop of the Popover.The objective is to simplify a bit the Popover code and to decouple the Hovercard logic from it.
The behavior should remain the same.
💡 Context
The idea to do this came from this PR: #597
📝 Checklist
For all PRs:
For all Vue changes:
./scripts/dialtone-vue-sync.sh
script. Read docs here: Dialtone Vue Sync Script