-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
76 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
layout: collection-page.njk | ||
title: Tables | ||
group: styles | ||
--- | ||
|
||
{% from "_example.njk" import example %} | ||
|
||
Use a tables to display tabular data. Do not use tables to lay out or organise content. | ||
|
||
{{ example({ group: "styles", item: "tables", example: "plain-table", html: true, nunjucks: false, size: "m", openHTML: true }) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Plain table | ||
layout: layout-example.njk | ||
private: true | ||
--- | ||
|
||
<table class="tna-table"> | ||
<caption class="tna-table__caption"> | ||
Records added and removed between 2020 and 2022 | ||
</caption> | ||
<thead class="tna-table__head"> | ||
<tr class="tna-table__row"> | ||
<th class="tna-table__header">Year</th> | ||
<th class="tna-table__header tna-table__header--numeric">Records added</th> | ||
<th class="tna-table__header tna-table__header--numeric">Records removed</th> | ||
</tr> | ||
</thead> | ||
<tbody class="tna-table__body"> | ||
<tr> | ||
<th class="tna-table__header">2020</th> | ||
<td class="tna-table__cell tna-table__cell--numeric">123,456</td> | ||
<td class="tna-table__cell tna-table__cell--numeric">789</td> | ||
</tr> | ||
<tr> | ||
<th class="tna-table__header">2021</th> | ||
<td class="tna-table__cell tna-table__cell--numeric">456,789</td> | ||
<td class="tna-table__cell tna-table__cell--numeric">123</td> | ||
</tr> | ||
<tr> | ||
<th class="tna-table__header">2022</th> | ||
<td class="tna-table__cell tna-table__cell--numeric">42,424</td> | ||
<td class="tna-table__cell tna-table__cell--numeric">1,337</td> | ||
</tr> | ||
</tbody> | ||
<tfoot class="tna-table__foot"> | ||
<tr> | ||
<th class="tna-table__header">Total</th> | ||
<td class="tna-table__cell tna-table__cell--numeric">622,669</td> | ||
<td class="tna-table__cell tna-table__cell--numeric">2,249</td> | ||
</tr> | ||
</tfoot> | ||
</table> |