Statistic trend and StackedBar segment text: readable colours on light surfaces and intent fills

Abierto
#706 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Foxhoundn ya está trabajando en esto.

Desde el 7/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

What the landing page needs

Text that a component draws in an intent's colour should be readable on the surface it sits on, the way ReqoreTag appearance="soft" already is (getReadableAccentColor: the colour pushed lighter on a dark theme, darker on a light one, until it reads at 4.5:1). Two components draw it raw:

  1. ReqoreStatistic trend: the arrow and the trend text are intent={trendIntent} with the intent's own colour. On a light tile the default intents read at about 2:1:
    • success #8db844 on #f0f0f2: 2.03:1 (on white 2.31:1);
    • warning #f59e0b on #f0f0f2: 1.89:1 (on white 2.15:1);
    • on a dark tile they are fine (success on #1b1b24: about 7:1).
  2. ReqoreStackedBar showValues / showLabels: the segment text is always #ffffff (with a 1px text shadow) whatever the segment's colour, and the labels are 9px capitals:
    • white on success #8db844: 2.31:1; on warning #f59e0b: 2.15:1; on danger #ef4444: 3.76:1; only muted #71717a passes (4.83:1).

Asks:

  • Statistic: the trend in the readable accent of its intent on the tile's surface (both modes), or a trendEffect so a consumer can set it.
  • StackedBar: the segment's value and label in the readable colour for the segment's fill (dark text on a light fill), and a size for the labels that is not below 11px (or a labelEffect).

Why

qorus.cloud's "What you get" row 1 (qorus-saas-landing PR #19, redesign package WP7) shows an example business dashboard: three ReqoreStatistic tiles with a trend ("↑ 6%", "✓ on target", "! 2 stuck · 1 exception") and the day's failures by category as a ReqoreStackedBar. In light mode the trend lines are hard to read, and the bar's own labels did not read in either mode (white 9px capitals on amber).

What the site does meanwhile

  • The tiles keep Reqore's trend (the light-mode trend is pale; the tiles are a pictured example, aria-hidden), marked TODO(reqore) with this issue in src/components/home/DashboardPreview.tsx.
  • The failures bar is a slim ReqoreStackedBar with no values or labels, and a legend under it made of ReqoreTag appearance="text" (which already computes a readable colour). Once the bar's text reads, the legend can go.
Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
16 h 28 min
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de qoretechnologies/reqore

Todos los issues de qoretechnologies/reqore

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.