-
-
Notifications
You must be signed in to change notification settings - Fork 50.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: options missing id #45287
fix: options missing id #45287
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #45287 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 693 692 -1
Lines 11842 11667 -175
Branches 3172 3117 -55
==========================================
- Hits 11842 11667 -175
☔ View full report in Codecov by Sentry. |
感觉没有完全解决, 除了PR里面修复的组件, input、select等组件也有同样问题, 希望统一处理一次 |
并没有完全解决,radioGroup还是有问题 |
radioGroup依旧存在问题。 |
@wangyingjie123 @noahge0923 帮忙来个复现开个新issue? |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
resolve #44505
💡 Background and solution
补了一下文档 label for,发现可以优化一下 options
📝 Changelog
options
add missingid
props.options
添加id
属性支持。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at e9df555
This pull request improves the accessibility and code style of the theme picker and the checkbox and radio groups by adding and passing
id
props to the components. It also adds test cases and formats the test files for theCheckbox.Group
andRadio.Group
components. It modifies theThemePicker.tsx
,ColorPicker.tsx
,RadiusPicker.tsx
, andindex.tsx
files to use theid
props and link the labels with the inputs.🔍 Walkthrough
🤖 Generated by Copilot at e9df555
id
prop toCheckbox.Group
,Radio.Group
,ThemePicker
,ThemeColorPicker
, andRadiusPicker
components to improve accessibility (link, link, link, link, link, link, link, link, link, link, link, link, link, link)Radio.Group
component in.dumi/pages/index/components/Theme/index.tsx
to useoptions
prop instead ofRadio
children (link)ThemePicker.tsx
andGroup.tsx
(link, link)group.test.tsx
files (link, link)