You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Not so much a problem but the fact that the SelectContent width doesn't inherit the SelectTrigger width. Would be nice to have this automated.
Describe the solution you'd like
I was thinking that there should be a way to capture the SelectTrigger layout width and have an option for SelectContent to inherit that width. In the primitive, we could use the rootContext to store the trigger layout and then have content set the width style if the user specifies some autoWidth property on content.
Describe alternatives you've considered
Manually specifying the width as per the example but that is not great with different screen widths as the input component's width could change depending on the screen.
Additional context
How I solved it in a higher order component:
Is your feature request related to a problem? Please describe.
Not so much a problem but the fact that the
SelectContent
width doesn't inherit theSelectTrigger
width. Would be nice to have this automated.Describe the solution you'd like
I was thinking that there should be a way to capture the
SelectTrigger
layout width and have an option forSelectContent
to inherit that width. In the primitive, we could use therootContext
to store thetrigger
layout and then havecontent
set the width style if the user specifies someautoWidth
property oncontent
.Describe alternatives you've considered
Manually specifying the width as per the example but that is not great with different screen widths as the input component's width could change depending on the screen.
Additional context
How I solved it in a higher order component:
The text was updated successfully, but these errors were encountered: