refactor(tabs): rename collapseBy → collapseHeightOffset#29928
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key findings:
No E2E tags are needed. No performance tests are needed. Performance Test Selection: |
|



Description
Following up from feedback on the Hub Page Discovery Tabs PR: the new
collapseByprop onTabsIconBarwas too vague. Renamed tocollapseHeightOffsetand clarified the JSDoc. No behavior change, no consumers currently use the prop.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
~Before
~After
~Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: this is a prop rename plus doc/test updates in a single component, with no behavioral logic change beyond using the new prop name; risk is limited to any external callers still passing the old prop.
Overview
Renames the
TabsIconBarpartial-collapse prop fromcollapseBytocollapseHeightOffsetand updates the component implementation to use the new name when computing collapsed height.Updates the related TypeScript types/JSDoc and adjusts the
TabsIconBartests to pass and describecollapseHeightOffset(including clamping behavior when the offset exceeds the measured row height).Reviewed by Cursor Bugbot for commit 243b05d. Bugbot is set up for automated code reviews on this repo. Configure here.