-
Notifications
You must be signed in to change notification settings - Fork 123
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
Allow src attribute for popovers #59
Comments
Hello! I'll work on this if no one is currently working on it :) |
Note also this issue is a little tricky because our current popover / tooltip implementations assume only inline markdown (no other components / reactivity / etc. contained within) (see the options table here). We'll likely need to:
None of these are trivial so feel free to split it up into multiple PRs to work on! |
Hi @ang-zeyu , thanks so much for pointing that out - I didn't consider the possible issues with reactivity! In that case should I refactor tooltips as well? I'm not sure what you mean by the options table, were you referring to the props table under vue-bootstrap popover components? |
yup, since its causing ssr issues too. Would be nice to standardise the approach as well.
sorry for the confusion, I linked the wrong page. |
Currently, popovers and tooltips are implemented using bootstrap-vue directives. Such an implementation is not reactive which limits the content that can be used in a popover/tooltip. Reactivity is important for future enhancements like supporting the src attribute (#59). Furthermore, it is incompatible with SSR, resulting in hydration problems that have arisen in #1615. Using Vue components for tooltips and popovers, and Portals for triggers, allows us to avoid the issues with reactivity and SSR. Let's use components instead of bootstrap-vue directives to implement popovers and tooltips. This gives better support of reactivity while avoiding SSR issues.
Hello! I'm considering between two implementations for the
[1]Not sure if there's a way to reposition the popover after the content has been loaded; I found this related discussion, though the given workaround no longer works since Tether has been replaced with popper.js. |
Given popovers are not meant to contain a lot of text, go with static? What do you guys think? |
I agree with @damithc (static), I think avoiding potential positioning issues will cause less bugs in the future as well. |
e.g.
<popover src="definintions.md#xp">Extreme programming</popover>
The text was updated successfully, but these errors were encountered: