Repository navigation
fix(ColorPicker): support locale for clear button aria-label - #59206
dogledogle wants to merge 2 commits into
Conversation
|
|
👁 Visual Regression Report for PR #59206 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 2.08kB (0.06%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
Files in
Files in
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature #59206 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 834 834
Lines 16136 16138 +2
Branches 4263 4264 +1
=========================================
+ Hits 16136 16138 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
这个是我之前让贡献者不要添加其他语言让Native Speaker来加。若Owner持不同看法,就忽略我。 |
|
好的,我是看到 #58978 说可以加,所以补了这个 |
可以到群里让大佬定个调,然后大家一致处理。 |
0fdb94b to
d67cdc0
Compare
|
冲突啦 |
Signed-off-by: 多格 <[email protected]>
改好了 |



🤔 这个变动的性质是?
🔗 相关 Issue
N/A
💡 需求背景和解决方案
ColorPicker 的清除按钮
aria-label此前硬编码为英文"Clear color"(ColorClear.tsx),导致任何语言下读屏器都播报英文。同目录的ColorTrigger.tsx、ColorPresets.tsx均已通过useLocale('ColorPicker')获取文案,仅此处遗漏。解决方案:
ColorClear.tsx改用useLocale('ColorPicker')读取locale.clear作为aria-label(触发器与面板两处清除按钮同时修复);Locale类型的ColorPicker段新增必填键clear;clear翻译;zh_CN下清除按钮aria-label应为清除颜色。📝 更新日志
aria-labelnot following the current locale.aria-label未跟随当前语言的问题。