Repository navigation
fix(Progress): use percent for aria-valuenow instead of success percent - #59634
Conversation
|
|
👁 Visual Regression Report for PR #59634 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 43.82kB (-1.33%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #59634 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 835 833 -2
Lines 17829 16071 -1758
Branches 4918 4213 -705
===========================================
- Hits 17829 16071 -1758 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
No linked issue.
💡 Background and Solution
When
successis set, therole="progressbar"element reports the success segment as its value instead of the overall progress:aria-valuenowreusespercentNumber, which preferssuccess.percentbecause it is used to decide thesuccessstatus. It is also not clamped, sopercent={120}givesaria-valuenow="120"(abovearia-valuemax="100"), and negative values are reported as negative.This PR sets
aria-valuenowtovalidProgress(percent), the same value the default info text shows. The status logic is unchanged.The snapshot updates only touch
aria-valuenow:segmentdemo and the success-color cases now report60instead of30;0/100;gradient-linedemo reports99.9(matching its99.9%text) instead of99.The new test fails on master (
aria-valuenow="30") and passes with the change.components/progress: 7 suites, 105 tests and 75 snapshots pass.components/upload: 10 suites pass, with no snapshot changes.tsc --noEmitpass.📝 Change Log
aria-valuenowreportingsuccess.percentinstead ofpercentand exceeding the 0–100 range.aria-valuenow取值为success.percent而非percent,以及超出 0–100 范围的问题。