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
No matter what the values in the input padding are set to, the text stays centered in the box.
Here is a runnable example where we compare an Input component to a Container with a Text component. The text in the container seems to be correctly placed at the flex start with different paddings while the input component seems to either always center the text, even with textAlign and verticalAlign, or use the paddings in a way I wouldn't expect it to.
<Rootgap={20}><InputborderWidth={2}borderRadius={6}paddingTop={2}paddingBottom={30}paddingLeft={10}paddingRight={30}textAlign="left"verticalAlign="top"focus={{borderColor: 'orange'}}borderColor="black"value={text}onValueChange={setText}/><ContainerborderWidth={2}borderRadius={6}borderColor="gray"paddingTop={2}paddingBottom={30}paddingLeft={10}paddingRight={30}><Text> Text Container </Text></Container></Root>``
The text was updated successfully, but these errors were encountered:
No matter what the values in the input padding are set to, the text stays centered in the box.
Here is a runnable example where we compare an
Input
component to aContainer
with aText
component. The text in the container seems to be correctly placed at the flex start with different paddings while the input component seems to either always center the text, even withtextAlign
andverticalAlign
, or use the paddings in a way I wouldn't expect it to.The text was updated successfully, but these errors were encountered: