-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Simple typescript error that won't allow Table.Head to accept a single child. MDN specifies that the table head pattern should look like table > thead > tr > th, but Table.Head expects only an array of children.
Also, the story for pinned columns doesn't actually use Table.Head, it uses raw HTML instead. I'm not sure if there was a reason for this, but I'd expect to be able to use the react components here in the same pattern eg.
<Table>
<Table.Head>
<Table.Row>
<th>Pinned Header</th>
<th>Header</th>
<th>Header</th>
<th>Header</th>
</Table.Row>
<Table.Body>
<Table.Row>
<td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
<Table.Row>
</Table.Body>
</Table.Head>
</Table>^ this doesn't work, you have to replace Table.Head with the plain html thead instead.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed