formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

TextField long prefix overflow #195

Closed b-graves closed 7 months ago

b-graves commented 8 months ago

I did a design for a TextField with a prefix of "Estimated value" in figma to look like this:

image

However when I have come to implement it I have written the following code:

<TextField.Aligner>
  <TextField
    name="estimated-value"
    variant="headless"
    placeholder="No value"
    prefix="Estimated value"
    startSlot={<Icon svg={<IconBarChart2 />} />}
  />
</TextField.Aligner>

However it looks like this:

Screenshot 2023-11-08 at 16 52 20

I'm assuming there is some kind of issue with the prefix being too long? I tried without aligner, without icon and other variants but all the same

Thanks!

blvdmitry commented 8 months ago

Hey, can you check if this is still happening on the latest patch? (2.5.9) I've just checked that the issue was there in 2.5.0 but when I tried 2.5.9 it was gone without any changes to the code:

https://codesandbox.io/s/dreamy-knuth-y5h3jn?file=/src/App.tsx

b-graves commented 7 months ago

ah apologies, yes all good with the latest patch, thank you!