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:
@@ -308,7 +308,7 @@ func (c *Chart) positionTip(left, top float64, transform string) {
|
||||
// pass so its ref stays valid; onMove positions it imperatively. When there is no hover it
|
||||
// is present but hidden — the same slot each render keeps the reconciler's diff stable.
|
||||
func (c *Chart) tooltipNode(p ChartProps, hv int) *vdom.VNode {
|
||||
base := "pointer-events-none absolute z-10 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-xs shadow-lg"
|
||||
base := "pointer-events-none absolute z-10 max-w-64 rounded-default border border-line bg-surface px-3 py-2 text-ss shadow-lg"
|
||||
if p.NoTooltip || hv < 0 || hv >= chartN(p) {
|
||||
return vdom.Div(vdom.WithRef(c.tipRef), vdom.Attr("class", cx(base, "hidden")))
|
||||
}
|
||||
@@ -1086,10 +1086,10 @@ func (c *Chart) legend(p ChartProps) *vdom.VNode {
|
||||
it := it // capture per iteration for the click closure
|
||||
off := !chartShown(p, it.i)
|
||||
swatchStyle := "background-color:" + chartColor(p, it.i)
|
||||
labelClass := "text-xs text-ink-soft"
|
||||
labelClass := "text-ss text-ink-soft"
|
||||
if off {
|
||||
swatchStyle += ";opacity:0.35"
|
||||
labelClass = "text-xs text-ink-faint line-through"
|
||||
labelClass = "text-ss text-ink-faint line-through"
|
||||
}
|
||||
nodes = append(nodes, vdom.El("button",
|
||||
vdom.Attr("type", "button"),
|
||||
|
||||
Reference in New Issue
Block a user