Put the docs class reference table in the .docs-table box (main) (#3144)

This commit is contained in:
Paweł Kuna authored and GitHub committed 2026-09-23 13:48:31 +02:00
1 parent 41e2dc77ab
commit bab8f244c8
3 files changed
+32 -23

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@tabler/docs": patch
---
Updated the class reference table in the docs to use the bordered `.docs-table` box.
+24 -22
View File
@@ -46,26 +46,28 @@ const groups = Object.entries(classnames).sort(([a], [b]) => (groupOrder.indexOf
<p>Every class this component ships, grouped by what it changes. A name in braces stands for a family — <code>{'{color}'}</code> is any base color, <code>{'{breakpoint}'}</code> any responsive step.</p> <p>Every class this component ships, grouped by what it changes. A name in braces stands for a family — <code>{'{color}'}</code> is any base color, <code>{'{breakpoint}'}</code> any responsive step.</p>
<table class="docs-classnames"> <div class="docs-table">
<tbody> <table class="docs-classnames">
{ <tbody>
groups.map(([group, entries]) => {
entries.map((entry) => ( groups.map(([group, entries]) =>
<tr> entries.map((entry) => (
<td> <tr>
<code>{entry.class}</code> <td>
</td> <code>{entry.class}</code>
<td> </td>
<Badge color={groupColors[group] ?? 'secondary'} light icon={groupIcons[group] ?? 'tag'} text={group} class="text-capitalize" /> <td>
</td> <Badge color={groupColors[group] ?? 'secondary'} light icon={groupIcons[group] ?? 'tag'} text={group} class="text-capitalize" />
<td> </td>
{entry.desc} <td>
{entry.default && <Badge color="blue" light text="default" class="ms-2" />} {entry.desc}
</td> {entry.default && <Badge color="blue" light text="default" class="ms-2" />}
</tr> </td>
)), </tr>
) )),
} )
</tbody> }
</table> </tbody>
</table>
</div>
<!-- END DOCS CLASSNAMES --> <!-- END DOCS CLASSNAMES -->
+3 -1
View File
@@ -366,7 +366,9 @@ header > .navbar {
border-inline-end: 0; border-inline-end: 0;
} }
thead tr:first-child > * { // First row of the table, whether it sits in a thead or, as in the
// class reference, straight in the tbody.
> table > :first-child > tr:first-child > * {
border-top: 0; border-top: 0;
} }