Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions packages/ui-components/__design__/table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,28 @@ export const Table: StoryObj = {
))}
</tr>
))}
</tbody>
</table>
</main>
),
};

export const HeadlessTable: StoryObj = {
render: () => (
<main>
<table>
<tbody>
{tableData.map((row, rowIndex) => (
<tr key={rowIndex}>
{row.map((cell, cellIndex) => (
<td key={cellIndex}>{cell}</td>
))}
</tr>
))}
<tr>
<td colSpan={3}>
<table>
<thead>
<tr>
<th>Sub 1</th>
<th>Sub 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sub A</td>
<td>Sub B</td>
</tr>
<tr>
<td>Sub C</td>
<td>Sub D</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</main>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/styles/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ main {
@apply font-semibold;
}

tr:last-child td {
tr:last-child > td {
@apply sm:border-b-0;

&:last-child {
Expand Down
Loading