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

Đang mở
#702 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Foxhoundn đang làm issue này rồi.

Từ ngày 6/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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' }} />
Ngôn ngữ chính
TypeScript
Star
4
Fork
0
Merge trung bình
16 giờ 28 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của qoretechnologies/reqore

Tất cả issue của qoretechnologies/reqore

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.