@moduk/frontend 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +0 -1
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-description-and-error-list.njk +16 -0
- package/dist/lib/nunjucks/moduk/components/error-summary/__tests__/macro.test.ts +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
{% endset -%}
|
|
7
7
|
|
|
8
8
|
{{ modukCookieBanner({
|
|
9
|
-
ariaLabel: "Cookies on
|
|
9
|
+
ariaLabel: "Cookies on [name of service]",
|
|
10
10
|
messages: [
|
|
11
11
|
{
|
|
12
|
-
headingText: "Cookies on
|
|
12
|
+
headingText: "Cookies on [name of service]",
|
|
13
13
|
html: html,
|
|
14
14
|
actions: [
|
|
15
15
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
|
|
2
|
+
|
|
3
|
+
{{ modukErrorSummary({
|
|
4
|
+
titleText: "There is a problem",
|
|
5
|
+
descriptionText: "There have been some errors when trying to submit your application.",
|
|
6
|
+
errorList: [
|
|
7
|
+
{
|
|
8
|
+
text: "The start date of the contract must include a year",
|
|
9
|
+
href: "#incorect-date-format"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Enter your full name",
|
|
13
|
+
href: "#full-name-input"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}) -}}
|
|
@@ -4,7 +4,7 @@ import { render, renderFile } from '../../../../../test-utils'
|
|
|
4
4
|
|
|
5
5
|
describe('error summary', async () => {
|
|
6
6
|
it('renders the content when using the text property', () => {
|
|
7
|
-
const element = renderFile('moduk/components/error-summary/__examples__/
|
|
7
|
+
const element = renderFile('moduk/components/error-summary/__examples__/with-description-and-error-list.njk')
|
|
8
8
|
expect(element).toHaveTextContent('There is a problem')
|
|
9
9
|
})
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"sass": "src/css/index.scss",
|