Skip to content

Commit

Permalink
feat(tables): ensure tables match Orange Digital Guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Apr 8, 2020
1 parent e701278 commit af31c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
td {
padding: $table-cell-padding;
line-height: $table-cell-line-height;
vertical-align: top;
}

thead tr {
Expand All @@ -46,7 +45,7 @@
// Change placement of captions with a class
//

.caption-top { caption-side: top; }
.caption-bottom { caption-side: bottom; } // Boosted mod


//
Expand Down
6 changes: 3 additions & 3 deletions site/content/docs/4.3/content/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ A `<caption>` functions like a heading for a table. It helps users with screen r
</tbody>
</table>
{{< /example >}}

You can also put the `<caption>` on the top of the table with `.caption-top`.
<!-- Boosted mod: default caption-side is top -->
You can also put the `<caption>` on the bottom of the table with `.caption-bottom`.

{{< example >}}
<table class="table caption-top">
<table class="table caption-bottom">
<caption>List of users</caption>
<thead>
<tr>
Expand Down

0 comments on commit af31c78

Please sign in to comment.