I'm trying to round the corners of this table with a border. I have found that the elements themselves will round (you can see this in the bg colors in the screenshots), but the border does not round with the element the way I expected.
I've tried applying the border and rounding to every layer (see below), and I get this. I imagine this is some CSS nuance when it comes to tables, but I just can't figure out why this would only affect borders and not the inner elements themselves.
<table
{...getTableProps()}
className="text-left bg-purple-500 rounded-full border-2 border-accent"
>
<thead className="text-left bg-purple-500 rounded-full border-2 border-accent">
{headerGroups.map((headerGroup) => (
<tr
{...headerGroup.getHeaderGroupProps()}
className="text-left bg-purple-500 rounded-full border-2 border-accent"
>
{headerGroup.headers.map((column) => (
// Add the sorting props to control sorting. For this example
// we can add them into the header props
<th
{...column.getHeaderProps(column.getSortByToggleProps())}
className="p-4 bg-green-700 rounded-full "
>
{column.render("Header")}
{/* Add a sort direction indicator */}
<span>
{column.isSorted
? column.isSortedDesc
? " π½"
: " πΌ"
: ""}
</span>
</th>
))}
</tr>
))}
</thead>
```
border-collapse: separate
on the table/th/td and apply the rounding. β Emie