-
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 4998fa5
Showing
6 changed files
with
54 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: "Months and rates", | ||
captionClasses: "govuk-table__caption--l", | ||
firstCellIsHeader: true, | ||
head: [ | ||
{ | ||
text: "Month you apply" | ||
}, | ||
{ | ||
text: "Rate for vehicles" | ||
} | ||
], | ||
rows: [ | ||
[ | ||
{ | ||
text: "January" | ||
}, | ||
{ | ||
text: "£95" | ||
} | ||
], | ||
[ | ||
{ | ||
text: "February" | ||
}, | ||
{ | ||
text: "£55" | ||
} | ||
], | ||
[ | ||
{ | ||
text: "March" | ||
}, | ||
{ | ||
text: "£125" | ||
} | ||
] | ||
] | ||
}) }} |
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
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
Can we be a bit more descriptive what the classes do a bit more? Is it just text size?
E.g.
...classes to make them larger or smaller from the default