This commit is contained in:
Gerard Burns 2024-04-04 08:38:25 +01:00
parent 4af2d07ca7
commit 5e87f1dcd4
3 changed files with 8 additions and 9 deletions

View File

@ -7,7 +7,7 @@
export let visible = false export let visible = false
export let offset = 0; export let offset = 0;
$: target = getContext(Context.PopoverRoot) || ".spectrum" $: target = getContext(Context.PopoverRoot) || "#app"
let hovering = false let hovering = false
let wrapper let wrapper
@ -39,10 +39,6 @@
const previousStyles = window.getComputedStyle(previousTooltip?.firstChild) const previousStyles = window.getComputedStyle(previousTooltip?.firstChild)
const currentStyles = window.getComputedStyle(currentTooltip?.firstChild) const currentStyles = window.getComputedStyle(currentTooltip?.firstChild)
console.log(previousStyles.backgroundColor);
console.log(currentStyles.backgroundColor);
console.log("")
currentTooltipWidth = currentTooltip.clientWidth currentTooltipWidth = currentTooltip.clientWidth
currentTooltipHeight = currentTooltip.clientHeight currentTooltipHeight = currentTooltip.clientHeight

View File

@ -207,7 +207,7 @@
<div class="contextTooltipContent"> <div class="contextTooltipContent">
<div class="contextTooltipHeader"> <div class="contextTooltipHeader">
<Icon name={getOptionIcon(currentOption)} /> <Icon name={getOptionIcon(currentOption)} />
<span>{currentOption}</span> <span>{getOptionIconTooltip(currentOption)}</span>
</div> </div>
{#if fieldSupport[currentOption]?.errors?.length > 0} {#if fieldSupport[currentOption]?.errors?.length > 0}
@ -231,7 +231,7 @@
<div class="contextTooltipContent"> <div class="contextTooltipContent">
<div class="contextTooltipHeader"> <div class="contextTooltipHeader">
<Icon name={getOptionIcon(previousOption)} /> <Icon name={getOptionIcon(previousOption)} />
<span>{previousOption}</span> <span>{getOptionIconTooltip(previousOption)}</span>
</div> </div>
{#if fieldSupport[previousOption]?.errors?.length > 0} {#if fieldSupport[previousOption]?.errors?.length > 0}
@ -273,6 +273,8 @@
} }
.contextTooltipHeader { .contextTooltipHeader {
background-color: var(--background-alt);
color: var(--ink);
display: flex; display: flex;
align-items: center; align-items: center;
height: var(--spectrum-alias-item-height-m); height: var(--spectrum-alias-item-height-m);
@ -288,10 +290,10 @@
.contextTooltipContent { .contextTooltipContent {
padding: 0px 12px; padding: 0px 12px;
color: black;
} }
.contextTooltipHeader :global(svg) { .contextTooltipHeader :global(svg) {
color: var(--ink);
margin-right: 5px; margin-right: 5px;
} }
@ -307,6 +309,7 @@
height: var(--spectrum-alias-item-height-m); height: var(--spectrum-alias-item-height-m);
padding: 0px var(--spectrum-alias-item-padding-m); padding: 0px var(--spectrum-alias-item-padding-m);
margin-bottom: 12px; margin-bottom: 12px;
color: black;
} }
.supportLevel :global(svg) { .supportLevel :global(svg) {
margin-right: 5px; margin-right: 5px;

View File

@ -31,7 +31,7 @@ export const validators = {
response.warnings.push( response.warnings.push(
"String columns can be used as input for a chart, but non-numeric values may cause unexpected behavior.") "String columns can be used as input for a chart, but non-numeric values may cause unexpected behavior.")
} }
if (fieldSchema.type === "date") { if (fieldSchema.type === "datetime") {
response.warnings.push( response.warnings.push(
"This column can be used as input for a chart, but it is parsed differently for various charts.") "This column can be used as input for a chart, but it is parsed differently for various charts.")
} }