[WEB-5072] chore: propel combobox improvement#7899
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds positioning customization capabilities to the propel combobox component by introducing a new positionerClassName prop.
- Adds
positionerClassNameprop to the ComboboxOptionsProps interface - Passes the new prop through to the Popover.Panel component for positioning control
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
WalkthroughAdds an optional positionerClassName prop to ComboboxOptionsProps and forwards it to Popover.Panel via a matching attribute in the Combobox options render path. No other logic or control flow changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 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 |
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/propel/src/combobox/combobox.tsx (1)
245-245: Consider wrappingpositionerClassNamewithcn()for consistency.The
classNameprop is wrapped withcn()to merge and deduplicate Tailwind classes, butpositionerClassNameis passed directly. For consistency and to support scenarios where multiple class names need merging, consider applying the same treatment.Apply this diff:
- <Popover.Panel sideOffset={8} className={cn(className)} positionerClassName={positionerClassName}> + <Popover.Panel sideOffset={8} className={cn(className)} positionerClassName={cn(positionerClassName)}>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/propel/src/combobox/combobox.tsx(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/propel/src/combobox/combobox.tsx (1)
packages/propel/src/utils/classname.tsx (1)
cn(4-4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Build and lint web apps
- GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
packages/propel/src/combobox/combobox.tsx (2)
42-42: LGTM!The addition of the optional
positionerClassNameprop follows existing naming conventions and provides a clean way to customize the positioner styling.
241-241: LGTM!The parameter destructuring correctly includes the new
positionerClassNameprop.
Description
This PR includes propel combobox improvements.
Type of Change
Summary by CodeRabbit