Skip to content

Add support for customizing search field styles in the Transfer component #70

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

Open
obycapital opened this issue Dec 28, 2024 · 1 comment

Comments

@obycapital
Copy link

Description:

Currently, the Transfer component does not support direct customization of the search input field styles, such as text color in dark mode. Adding support for the listStyle parameter or an equivalent would allow users to pass custom styles to the search input field and related elements.

Proposed Solution:

Add a listStyle parameter to the transfer function.
Ensure the parameter is correctly passed to the underlying Ant Design Transfer component.

Example Usage:

transfer(..., listStyle={'color': 'white'})

Benefits:

Improved flexibility for UI customization.
Better adaptability to different themes, especially in dark mode.

Reference:

Ant Design - Transfer Documentation
Thank you for maintaining this excellent library! 🚀😊

@raphaelmollon
Copy link

Great work overall!
Although the related pull request could be very useful for many people, I just wish that the default search text color is changed in dark mode:

Image

Is it something that could be easily updated, by any chance?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants