Reverted text-xs override. text-ss replaces the text-xs override while tailwind's existing text-xs replaces our text-2xs.
This commit is contained in:
@@ -586,7 +586,7 @@ function CartesianTooltip(p: {
|
||||
});
|
||||
const rows = () => p.props.series.map((s, i) => ({ s, i })).filter(({ i }) => !p.hidden.has(i));
|
||||
return (
|
||||
<div class="pointer-events-none absolute z-10 min-w-32 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-xs shadow-lg"
|
||||
<div class="pointer-events-none absolute z-10 min-w-32 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-ss shadow-lg"
|
||||
style={style()}>
|
||||
<div class="mb-1 font-medium text-ink">{p.label}</div>
|
||||
<For each={rows()}>{(row) => (
|
||||
@@ -704,7 +704,7 @@ function RadialChart(p: SubProps): JSXElement {
|
||||
<svg width={p.width} height={p.height} viewBox={`0 0 ${p.width} ${p.height}`} class="block" role="img"
|
||||
innerHTML={body()} onpointermove={onMove} onpointerleave={() => setHover(null)} />
|
||||
<Show when={p.props.tooltip !== false && hover() !== null}>
|
||||
<div class="pointer-events-none absolute z-10 min-w-28 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-xs shadow-lg"
|
||||
<div class="pointer-events-none absolute z-10 min-w-28 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-ss shadow-lg"
|
||||
style={{
|
||||
left: `${clamp(pointer()[0], 8, p.width - 8)}px`,
|
||||
top: `${clamp(pointer()[1], 8, p.height - 8)}px`,
|
||||
@@ -752,7 +752,7 @@ function Legend(p: { props: ChartProps; colorOf: (i: number) => string; hidden:
|
||||
}>
|
||||
<span class="inline-block h-0.5 w-4 rounded-full" style={{ "background-color": p.colorOf(it.i), opacity: off() ? 0.35 : 1 }} />
|
||||
</Show>
|
||||
<span class={"text-xs " + (off() ? "text-ink-faint line-through" : "text-ink-soft")}>{it.name}</span>
|
||||
<span class={"text-ss " + (off() ? "text-ink-faint line-through" : "text-ink-soft")}>{it.name}</span>
|
||||
</button>
|
||||
);
|
||||
}}</For>
|
||||
|
||||
Reference in New Issue
Block a user