Check out my code snippet here: https://play.tailwindcss.com/6e1ovq2LZC?layout=preview (make sure to set your browser's zoom to 500%)
Here is a visualization of how the input with the buttons appears
The issue I'm facing is that the left border of the first button overlaps with the border of the text input, while the second button's border aligns perfectly against the first button. This alignment problem affects proper margin addition directly to the buttons' classes (ml-2
) as illustrated in the following image.
Inconsistency with left margin placement on the buttons
Adjusting the width of the borders seems ineffectual in resolving this issue. Even after removing the borders, the elements still behave as if the borders were present when positioning items.