Repository navigation
feat(CheckboxGroup): add max prop - #7130
Conversation
|
Client output of the apps in
Raw sizes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (6)
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughCheckboxGroup now accepts and forwards Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Merge Risk: ⚪ Minimal · up to At the selection limit, unchecked options receive disabled styling while selected options remain styled normally. The reviewed changes show no material merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
commit: |
🔗 Linked issue
Stacked on #7129.
❓ Type of change
📚 Description
Reka UI 2.11 adds a
maxprop toCheckboxGroupRoot(unovue/reka-ui#2058). Once the limit is reached the unchecked checkboxes getaria-disabledbut stay focusable, they are not natively disabled.This forwards
maxfromCheckboxGroup. Since those checkboxes have nodisabledattribute,Checkboxreads the group context and applies itsdisabledvariant when the limit is reached, so they look the same as disabled ones and theme overrides of that variant apply.The shared
hoverselector in the checkbox theme also excludesaria-disabledso a blockedcardortableitem does not highlight on hover.RadioGroupuses the same selector, which is why its snapshots change. It never matches there.📝 Checklist