-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow reactivity in popovers and tooltips (#1748)
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.
- Loading branch information
Showing
24 changed files
with
229 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
packages/cli/test/functional/test_site/expected/index.page-vue-render.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
packages/cli/test/functional/test_site/expected/testIncludeBoilerplate.page-vue-render.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
packages/cli/test/functional/test_site/expected/testPopoverTrigger.page-vue-render.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cli/test/functional/test_site/expected/testTooltipSpacing.page-vue-render.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.