ReqoreSlider: the thumb (role=slider) gets no accessible name or value text; aria-label lands on the root

Aperta
#702 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Foxhoundn ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

What the landing page needs

The marketing site's cost calculator ("Work out your cost", qorus-saas-landing PR #19) is four ReqoreSliders: orders a month, the share of orders with an exception, minutes to handle one, the cost of an hour. Each slider needs an accessible name (its visible label, "Orders a month") and a value a screen reader can say ("20,000", "1%", "20 min", "$35"), not the raw number.

ReqoreSlider gives no way to do either:

  • The focusable element is radix's thumb (role="slider"), but ReqoreSlider spreads its own props (aria-label, aria-labelledby) onto radix's root, so they never reach the thumb. A slider rendered with aria-label="Orders a month" is announced as an unnamed slider.
  • There is no prop for the value text (radix's getAriaValueText equivalent): the thumb's aria-valuenow is the raw number, so "35" is read out instead of "$35", and "0.5" instead of "0.5%".

(The props that leaked onto the root's DOM span, fluid, fill and spaceBetween, are fixed in #697.)

What would fix it

  • aria-label / aria-labelledby on ReqoreSlider reach the thumb (one thumb), or a thumbLabel / getThumbLabel(index) prop for a range.
  • A getValueText(value) prop that sets the thumb's aria-valuetext.
  • A story where the slider is named by a visible label, with a play test that finds it by role and name (getByRole('slider', { name })) and checks aria-valuetext.

Meanwhile

The site passes both through thumbProps, which radix merges onto the thumb with asChild (src/components/home/CostCalculator.tsx, marked TODO(reqore)):

<ReqoreSlider … thumbProps={{ 'aria-labelledby': labelId, 'aria-valuetext': '20 min' }} />
Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
16h 28m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di qoretechnologies/reqore

Tutte le issue di qoretechnologies/reqore

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.