Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Primitive Progress wrapper omits numeric props from Root and ARIA value

已关闭 适合新手
#7,431 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

已经有一个关联 PR 被合并了。

  • #7438 来自 @harsh21234i —— 已合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

找到仅使用 className 构造 RadixProgressRoot 的原始 Progress 包装器;向 Root 元素添加 value 和 max 属性,使其变为确定状态并暴露 aria-valuenow。通过渲染组件并检查 Root 元素是否具有正确的 data-state 和 aria-valuenow 属性来验证。

由索引模型根据 Issue 内容生成。

描述

The high-level primitive Progress wrapper forwards value and max to its Indicator, leaving the Root indeterminate and without aria-valuenow. State-driven visual updates work, but assistive technology cannot read the numeric progress.

This reproduces with stable reflex-components-radix==0.9.10.post1/Reflex 0.9.12 and alpha Radix/Reflex 0.10.0a1; it is preexisting. Themes rx.progress exposes the value correctly.

Reproduce
import reflex as rx
from reflex_components_radix.primitives.progress import progress

class State(rx.State):
    amount: int = 25

# Render in an app, with a State event/slider that changes amount.
progress(value=State.amount, max=100, id="primitive-progress")
  1. Open the page and inspect #primitive-progress.
  2. Change State.amount from 25 to 100 through the app's slider.
  3. Expected: the Root is determinate, exposes the current numeric aria-valuenow, and reaches the complete state at 100.
  4. Actual: the visual Indicator updates, but the Root remains data-state="indeterminate" and omits aria-valuenow.

Construction output isolates the prop placement:

RadixProgressRoot: className only; no value/max
  RadixProgressIndicator: value=<State.amount>, max=100
Environment and evidence

macOS, Python 3.13, real dev/prod Chromium 143.0.7499.4 testing. Only published packages were installed in isolated environments; no framework fix was applied.

主要语言
Python
星标
29k
派生
1.8k
平均合并
3 天 7 小时
30 天内合并 PR
176

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

reflex-dev/reflex 的其他 Issue

查看 reflex-dev/reflex 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。