From 78b7306f5ec9f33470cea4788fa3f31cd8b73438 Mon Sep 17 00:00:00 2001 From: nicholas Date: Mon, 23 Sep 2024 11:44:37 -0400 Subject: [PATCH 1/2] Make tooltip collision avoidance opt-out --- src/components/Tooltip/PTooltip.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Tooltip/PTooltip.vue b/src/components/Tooltip/PTooltip.vue index d24953d8e..91d375070 100644 --- a/src/components/Tooltip/PTooltip.vue +++ b/src/components/Tooltip/PTooltip.vue @@ -7,6 +7,7 @@ @@ -28,7 +29,7 @@ import TooltipTrigger from '@/components/Tooltip/PTooltipTrigger.vue' const props = withDefaults( - defineProps & { text?: string }>(), + defineProps & { text?: string, allowCollisions?: boolean }>(), { text: undefined, // Mimicking radix-vue's TooltipRoot props. These need to be undefined rather than Vue's default behavior of From 09d195ff8bd627b1506f497b1d16349e3b520a8a Mon Sep 17 00:00:00 2001 From: nicholas Date: Mon, 23 Sep 2024 11:50:06 -0400 Subject: [PATCH 2/2] Update default tooltip font size/family --- src/components/Tooltip/PTooltipContent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Tooltip/PTooltipContent.vue b/src/components/Tooltip/PTooltipContent.vue index 633cb4ca7..d8e75b0bc 100644 --- a/src/components/Tooltip/PTooltipContent.vue +++ b/src/components/Tooltip/PTooltipContent.vue @@ -36,7 +36,8 @@ bg-popover px-3 py-1.5 - text-sm + text-xs + font-mono text-popover-foreground shadow-md animate-in