-
Notifications
You must be signed in to change notification settings - Fork 3
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
✨(react) add select options custom render #187
Conversation
|
1144775
to
71b30eb
Compare
0eb3fd6
to
0f85b68
Compare
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 get what you mean, in reality it was 100% made on purpose to fit the design system. The select is not intended to be used with exotic heights, in such cases it probably means the UI/UX of the feature could be reworked in another way to be able to use native components based on quick talk with @jbpenrath WDYT @AntoLC ? |
I think that the client would have about 15px to be able to render his option without modifying the height, so it will not cover lot of use cases. |
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.
- In searchable mode, when we click on the option, the filter stay active so we don't see the ReactNode until we click out of the select
scrnli_10_9_2023_10-53-40.AM.webm
What about this part?
@AntoLC could you provide a video of the current implementation of this select ? |
What other possibilities do we have? In search mode when giving focus to input we need to deal with text, so that's why we use |
Other possibility, when you click on the option you display the option, as it is now when you click on the option you still display the filter until the user click out of the select as shown in the video. |
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.
All good, fits Marsha cases.
I understand, it would imply a structural change were when you select an option you loose focus on the search input, which is not what we see on other libraries at most 🤔 |
We want to be able to render the options in a customized manner.
We want to be able to render the options in a customized manner.
0f85b68
to
913512e
Compare
Mono
Multi