-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add updated caption styles to table conponent
- Loading branch information
1 parent
cc6f8ab
commit 108cb86
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: Custom caption size | ||
layout: layout-example.njk | ||
--- | ||
|
||
{% from "govuk/components/table/macro.njk" import govukTable %} | ||
|
||
{{ govukTable({ | ||
caption: "Dates and amounts", | ||
captionClasses: "govuk-table__caption--m", | ||
firstCellIsHeader: true, | ||
head: [ | ||
{ | ||
text: "Date" | ||
}, | ||
{ | ||
text: "Amount" | ||
} | ||
], | ||
rows: [ | ||
[ | ||
{ | ||
text: "First 6 weeks" | ||
}, | ||
{ | ||
text: "£109.80 per week" | ||
} | ||
], | ||
[ | ||
{ | ||
text: "Next 33 weeks" | ||
}, | ||
{ | ||
text: "£109.80 per week" | ||
} | ||
], | ||
[ | ||
{ | ||
text: "Total estimated pay" | ||
}, | ||
{ | ||
text: "£4,282.20" | ||
} | ||
] | ||
] | ||
}) }} |
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
Any chance we can describe a bit more about what these do? Is it just text size?
E.g.
...to make them larger or smaller from the default.