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
Bug Report: Issue with TextField Width in StyledSelect Component
Summary:
In the StyledSelect component, the TextField element inside the Select.Content dropdown does not take the full width as expected, causing layout issues and breaking the responsive design.
Steps to Reproduce:
Implement the StyledSelect component with a TextField for search functionality.
Add a list of items to the Select dropdown.
Set the width of the Select to 100% for both the Select.Trigger and Select.Content elements.
Ensure the TextField is placed inside the Select.Content and is set to take full width (width: '100%').
Open the dropdown and observe the TextField inside it.
Expected Behavior:
The TextField element inside the Select.Content should take up the full width of the dropdown, aligning properly with the dropdown's container. It should be fully responsive.
Actual Behavior:
The TextField inside the Select.Content does not take up the full width as expected. Instead, it appears narrower than the parent Select.Content, resulting in layout issues and misalignment with other elements inside the dropdown.
Environment:
Browser: All browsers (e.g., Chrome, Firefox, Safari)
Device: Desktop
Framework: React, Radix UI, TypeScript
Library Version: Radix UI v1.0.x, React 18.x
Possible Cause:
The issue may be caused by the Box wrapper around the TextField not properly inheriting the full width, or conflicting styles preventing the TextField.Root from taking up the intended width. Additionally, inline styles or improper width declarations could be interfering with the layout.
Suggested Fix:
Ensure that the TextField.Root element has a width: 100% style applied directly to it.
Consider removing any unnecessary wrappers (e.g., the Box around TextField) to avoid conflicting styles.
Verify that all parent components of the TextField (e.g., Select.Content, Select.Trigger) are also styled with width: 100%.
Additional Notes:
This issue only affects the layout when the add prop is set to true and the search functionality is enabled within the Select dropdown.
The problem can be visually observed in a responsive layout where the dropdown width should adjust with the screen size.
Priority: Medium
The text was updated successfully, but these errors were encountered:
Bug Report: Issue with TextField Width in StyledSelect Component
Summary:
In the
StyledSelect
component, theTextField
element inside theSelect.Content
dropdown does not take the full width as expected, causing layout issues and breaking the responsive design.Steps to Reproduce:
StyledSelect
component with aTextField
for search functionality.Select
dropdown.width
of theSelect
to100%
for both theSelect.Trigger
andSelect.Content
elements.TextField
is placed inside theSelect.Content
and is set to take full width (width: '100%'
).TextField
inside it.Expected Behavior:
The
TextField
element inside theSelect.Content
should take up the full width of the dropdown, aligning properly with the dropdown's container. It should be fully responsive.Actual Behavior:
The
TextField
inside theSelect.Content
does not take up the full width as expected. Instead, it appears narrower than the parentSelect.Content
, resulting in layout issues and misalignment with other elements inside the dropdown.Environment:
Possible Cause:
The issue may be caused by the
Box
wrapper around theTextField
not properly inheriting the full width, or conflicting styles preventing theTextField.Root
from taking up the intended width. Additionally, inline styles or improper width declarations could be interfering with the layout.Suggested Fix:
TextField.Root
element has awidth: 100%
style applied directly to it.Box
aroundTextField
) to avoid conflicting styles.TextField
(e.g.,Select.Content
,Select.Trigger
) are also styled withwidth: 100%
.Additional Notes:
add
prop is set totrue
and the search functionality is enabled within theSelect
dropdown.Priority: Medium
The text was updated successfully, but these errors were encountered: