diff --git a/packages/bbui/src/Tooltip/AbsTooltip.svelte b/packages/bbui/src/Tooltip/AbsTooltip.svelte new file mode 100644 index 0000000000..a407c34de3 --- /dev/null +++ b/packages/bbui/src/Tooltip/AbsTooltip.svelte @@ -0,0 +1,120 @@ + + + + +
+ +
+{#if visible} + + + {text} + + + +{/if} + + diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index d26b938dd5..cbe9ddbff5 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -36,6 +36,11 @@ export { default as Layout } from "./Layout/Layout.svelte" export { default as Page } from "./Layout/Page.svelte" export { default as Link } from "./Link/Link.svelte" export { default as Tooltip } from "./Tooltip/Tooltip.svelte" +export { + default as AbsTooltip, + TooltipDirection, + TooltipType, +} from "./Tooltip/AbsTooltip.svelte" export { default as TooltipWrapper } from "./Tooltip/TooltipWrapper.svelte" export { default as Menu } from "./Menu/Menu.svelte" export { default as MenuSection } from "./Menu/Section.svelte" diff --git a/packages/frontend-core/src/components/grid/layout/HeaderRow.svelte b/packages/frontend-core/src/components/grid/layout/HeaderRow.svelte index f31cc198fb..de73281bd5 100644 --- a/packages/frontend-core/src/components/grid/layout/HeaderRow.svelte +++ b/packages/frontend-core/src/components/grid/layout/HeaderRow.svelte @@ -2,7 +2,12 @@ import { getContext } from "svelte" import GridScrollWrapper from "./GridScrollWrapper.svelte" import HeaderCell from "../cells/HeaderCell.svelte" - import { Icon } from "@budibase/bbui" + import { + Icon, + AbsTooltip, + TooltipType, + TooltipDirection, + } from "@budibase/bbui" const { renderedColumns, @@ -30,13 +35,19 @@ {#if $config.allowSchemaChanges} -
dispatch("add-column")} + - -
+
dispatch("add-column")} + > + +
+ {/if}