I'm currently working with React and Tailwind CSS, and I have a specific design goal in mind:
https://i.sstatic.net/rbVP1.png
To achieve this, I added borders to both the + and - buttons, as well as a border on the parent div to encompass all elements.
However, the borders on the buttons appear larger due to the doubling of borders.
If I try using a border only on the right for the - button, there is a slight gap without a border...
Does anyone know how I can accomplish this seamlessly? Any suggestions or advice would be greatly appreciated!
For reference, here is a link to the Tailwind Playground.
Below is my code snippet:
<div class="p-8">
<div class="flex w-fit items-center rounded ring-1 ring-neutral-300">
<button type="button" class="h-10 w-10 rounded border border-neutral-300 bg-transparent focus:outline-none">-</button>
<input id="{id}" type="number" value="{count}" class="arrow-hide h-10 w-16 rounded border-none text-center text-base font-semibold focus:outline-none" />
<button type="button" class="h-10 w-10 rounded border border-neutral-300 bg-transparent focus:outline-none">+</button>
</div>
</div>
Your help is truly appreciated! Thank you.