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

オープン
#702 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Foxhoundn がすでに取り組んでいます。

2026年10月6日 から。

評価

この issue はまだ評価されていません。

説明

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' }} />
主要言語
TypeScript
スター
4
フォーク
0
平均マージ
16時間 28分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

qoretechnologies/reqore のほかの issue

qoretechnologies/reqore の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。