Repository navigation
feat: support custom accessible labels on step handlers via upAriaLabel and downAriaLabel - #759
Conversation
…el and downAriaLabel
|
@feritcemkahraman is attempting to deploy a commit to the afc163's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughInputNumber 新增 Changes步进按钮可访问名称
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
Summary
Fixes #757.
Currently, \StepHandler\ hardcodes the accessible button labels as English literals ('Increase Value'\ and 'Decrease Value') with no way for consumers or localization providers to customize them.
This PR adds optional \upAriaLabel\ and \downAriaLabel\ props to \InputNumberProps\ and forwards them to \StepHandler\ as \�ria-label, defaulting to the existing 'Increase Value'\ and 'Decrease Value'\ strings when omitted.
Summary by CodeRabbit
InputNumber支持为增加和减少按钮设置自定义无障碍标签。