-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: extend PickerBase component functionality #11851
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. |
Bitrise✅✅✅ Commit hash: 08f40b3 Note
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question regarding the arrow down icon changes
Bitrise✅✅✅ Commit hash: c612d2a Note
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that we should allow access to all child elements within our components. We usually handle this by spreading a prop object to the child components instead of exposing each prop individually, as you're doing with dropdownIconStyle
. It might be more flexible to use dropdownIconProps
and spread them to the <Icon {...dropdownIconProps} />
, allowing props to be overridden, but that would require somewhat complex types which is out of the scope of this PR. Approving to unblock.
That makes sense. I can do a follow up after the header redesign is finished to allow that. Thanks for reviewing and approving🫡 @georgewrmarshall |
Description
This PR enhances the PickerBase component to provide more flexibility and control to developers, particularly in relation to the dropdown icon styling and positioning. These changes are necessary to accommodate the Header Update design requirements.
Key Changes:
Dropdown Icon Size Control: Developers can now specify the size of the dropdown icon, with a fallback to ensure consistent behavior.
Dropdown Icon Spacing: Added the ability to control the spacing between the dropdown icon and other elements within the component.
Backward Compatibility: These changes are designed to be non-breaking, maintaining compatibility with existing implementations.
Benefits:
Impact:
Related issues
Related: #11763
Manual testing steps
PickerBase
being used. For example theNetworkPicker
in header in the home screenScreenshots/Recordings
Before
NA
After
NA
Pre-merge author checklist
Pre-merge reviewer checklist