Skip to content

fix(progress): [sync] allow overriding SVG accessibility semantics - #95

Merged
aibayanyu20 merged 1 commit into
nextfrom
sync/progress-325
Sep 3, 2026
Merged

aibayanyu20 merged 1 commit into
nextfrom
sync/progress-325

Conversation

@aibayanyu20

Copy link
Copy Markdown
Member

Summary

Synchronized from upstream react-component/progress.

Generated by RepoSync Hub.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77764f42af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let stackPtg = 0
return (
<svg
role="presentation"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expose the SVG semantics in the public prop type

When a TypeScript/TSX consumer tries to use the new behavior with <Line role="progressbar" aria-valuenow={50} /> (and likewise for Circle), compilation fails because the exported ProgressProps in packages/progress/src/interface.ts does not include role, ARIA attributes, or the relevant Vue SVGAttributes. The test bypasses this public typing through test-utils' attrs, so the runtime behavior passes while normal typed consumers cannot use it without a cast or suppression; extend the public props with the supported SVG accessibility attributes.

Useful? React with 👍 / 👎.

@aibayanyu20
aibayanyu20 merged commit 5d6c91a into next Sep 3, 2026
3 checks passed
@aibayanyu20
aibayanyu20 deleted the sync/progress-325 branch September 3, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant