uikit icon indicating copy to clipboard operation
uikit copied to clipboard

The input padding is incorrect

Open wrangelvid opened this issue 1 year ago • 1 comments

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.

      <Root gap={20}>
        <Input
          borderWidth={2}
          borderRadius={6}
          paddingTop={2}
          paddingBottom={30}
          paddingLeft={10}
          paddingRight={30}
          textAlign="left"
          verticalAlign="top"
          focus={{ borderColor: 'orange' }}
          borderColor="black"
          value={text}
          onValueChange={setText}
        />
        <Container
          borderWidth={2}
          borderRadius={6}
          borderColor="gray"
          paddingTop={2}
          paddingBottom={30}
          paddingLeft={10}
          paddingRight={30}
        >
          <Text> Text Container </Text>
        </Container>
      </Root>
``

wrangelvid avatar Jun 06 '24 14:06 wrangelvid

Thanks for the example 👌. I understand now and will investiagte

bbohlender avatar Jun 06 '24 14:06 bbohlender