(current: number | null | undefined, previous: number | null | undefined, { higherIsBetter, unchangedBelowPct }: CompareOptions): Delta
Null on either side is "none": a figure that was not read has no change to draw. A move from zero is measured against the new figure, so it is 100%, never infinite.
deltaText
(d: Delta): string
The words a screen reader and a plain-text copy say: "up 12%", "no change".
Parts and data attributes
Class
Is
.cap-delta
the root
.cap-delta-arrow
a part
Attribute
Values
data-kind
unchanged
data-tone
badgood
Accessibility
Nothing to operate.
The arrow is hidden; "up" or "down" is read before the percent.
Both tones reach 4.5:1 on the surface in both themes.