Skip to content

Commit

Permalink
improvements and fixing to Nunjucks arguments descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrimesdev committed Jun 14, 2021
1 parent abe62d0 commit 5b188d3
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 71 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NHS digital service manual Changelog

## 5.0.0 - Unreleased
## 5.0.0 - 14 June 2021

:new: **New features**

Expand All @@ -10,7 +10,6 @@

- Update dependencies to the latest versions

<<<<<<< HEAD
## 4.2.0 - 10 June 2021

:new: **New content**
Expand All @@ -26,8 +25,6 @@

- Fix broken health literacy link on the service standard pages [Issue 1136](https://github.com/nhsuk/nhsuk-service-manual/issues/1136)

=======
>>>>>>> update dependencies to latest versions
## 4.1.3 - 8 June 2021

:wrench: **Fixes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "openInNewWindow",
"type": "boolean",
"required": false,
"description": "If set to true, then the link will open in a new window"
"description": "If set to true, then the link will open in a new window."
},
{
"name": "classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "href",
"type": "string",
"required": false,
"description": "Link for the breadcrumbs item."
"description": "The value of the breadcrumb item link href attribute."
},
{
"name": "attributes",
Expand Down
8 changes: 4 additions & 4 deletions app/views/design-system/components/card/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"name": "headingLevel",
"type": "integer",
"required": false,
"description": "Classes to add to the card heading."
"description": "Optional heading level for the card heading. Default: 2"
},
{
"name": "href",
"type": "string",
"required": true,
"required": false,
"description": "The value of the card link href attribute."
},
{
"name": "clickable",
"type": "boolean",
"required": false,
"description": "If set to true, then the class `nhsuk-card--clickable` will be applied."
"description": "If set to true, then the whole Card will become a clickable Card variant."
},
{
"name": "feature",
"type": "boolean",
"required": false,
"description": "If set to true, then the class `nhsuk-card__heading--feature` and `nhsuk-card__content--feature` will be applied."
"description": "If set to true, then the Card will become a feature Card variant."
},
{
"name": "imgURL",
Expand Down
12 changes: 0 additions & 12 deletions app/views/design-system/components/details/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
"required": true,
"description": "HTML content to be displayed within the details component."
},
{
"name": "id",
"type": "string",
"required": false,
"description": "Id to add to the details element."
},
{
"name": "open",
"type": "boolean",
"required": false,
"description": "If true, details element will be expanded."
},
{
"name": "classes",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@
"name": "title",
"type": "string",
"required": true,
"description": "Title to be displayed on the do and don't list component.."
"description": "Title to be displayed on the do and don't list component."
},
{
"name": "type",
"type": "string",
"required": true,
"description": "Type of do and don't list component, \"cross\", \"tick\""
"description": "Type of do and don't list component, \"cross\", \"tick\"."
},
{
"name": "items",
"type": "array",
"required": true,
"description": "Array of do and dont items objects.",
"description": "Array of do and don't items objects.",
"params": [
{
"name": "item",
"type": "string",
"required": true,
"description": "Text to use within each do and dont item label."
"description": "Text to use within each do and don't item label."
}
]
},
{
"name": "hidePrefix",
"type": "boolean",
"required": false,
"description": "If set to true when type is \"cross\", then removes the default \"do not\" text prefix to each item"
"description": "If set to true when type is \"cross\", then removes the default \"do not\" text prefix to each item."
},
{
"name": "headingLevel",
Expand All @@ -42,13 +42,13 @@
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the details element."
"description": "Classes to add to the do and don't list container."
},
{
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the details element."
"description": "HTML attributes (for example data attributes) to add to the do and don't list container."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the error message span tag"
"description": "HTML attributes (for example data attributes) to add to the error message span tag."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"name": "transactionalService",
"type": "object",
"required": false,
"description": "Settings for transactional service header",
"description": "Settings for transactional service header.",
"params": [
{
"name": "name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "id",
"type": "string",
"required": false,
"description": "Optional id attribute to add to the hint."
"description": "Id attribute to add to the hint."
},
{
"name": "classes",
Expand Down
4 changes: 2 additions & 2 deletions app/views/design-system/components/images/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the button component."
"description": "Classes to add to the image container."
},
{
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the button component."
"description": "HTML attributes (for example data attributes) to add to the image container."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{
"name": "text",
"type": "string",
"required": true,
"description": "Text to use within the skip link component."
"required": false,
"description": "Text to use within the skip link component. Defaults to `Skip to main content` if you do not provide a value."
},
{
"name": "href",
"type": "string",
"required": false,
"description": "The value of the skip link’s `href` attribute. Defaults to `#content` if you do not provide a value."
"description": "The value of the skip link’s `href` attribute. Defaults to `#maincontent` if you do not provide a value."
},
{
"name": "classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the row `div`"
"description": "Classes to add to the row `div`."
},
{
"name": "key.text",
Expand All @@ -27,7 +27,7 @@
"name": "key.classes",
"type": "string",
"required": false,
"description": "Classes to add to the key wrapper"
"description": "Classes to add to the key wrapper."
},
{
"name": "value.text",
Expand All @@ -45,25 +45,25 @@
"name": "value.classes",
"type": "string",
"required": false,
"description": "Classes to add to the value wrapper"
"description": "Classes to add to the value wrapper."
},
{
"name": "actions.classes",
"type": "string",
"required": false,
"description": "Classes to add to the actions wrapper"
"description": "Classes to add to the actions wrapper."
},
{
"name": "actions.items",
"type": "array",
"required": false,
"description": "Array of action item objects",
"description": "Array of action item objects.",
"params": [
{
"name": "href",
"type": "string",
"required": true,
"description": "The value of the link href attribute for an action item"
"description": "The value of the link href attribute for an action item."
},
{
"name": "text",
Expand Down Expand Up @@ -91,13 +91,13 @@
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the container."
"description": "Classes to add to the summary list container."
},
{
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the container."
"description": "HTML attributes (for example data attributes) to add to the summary list container."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"name": "caption",
"type": "string",
"required": false,
"description": "Caption text"
"description": "Caption text."
},
{
"name": "captionClasses",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"name": "attributes",
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the anchor tag."
"description": "HTML attributes (for example data attributes) to add to the input."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"name": "heading",
"type": "string",
"required": true,
"description": "Heading to be used within the warning callout."
"description": "Heading to be used on the warning callout."
},
{
"name": "headingLevel",
"type": "integer",
"required": false,
"description": "Optional heading level for the heading. Default: 3"
},
{
"name": "html",
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
{
"name": "nhsuk-service-manual",
<<<<<<< HEAD
<<<<<<< HEAD
"version": "4.2.0",
=======
<<<<<<< HEAD
"version": "4.1.3",
=======
"version": "5.0.0",
>>>>>>> populate CHANGELOG for nunjucks macro options and bump version
>>>>>>> populate CHANGELOG for nunjucks macro options and bump version
=======
"version": "5.0.0",
>>>>>>> update dependencies to latest versions
"description": "NHS digital service manual",
"main": "app.js",
"directories": {
Expand Down

0 comments on commit 5b188d3

Please sign in to comment.