{ "component": "error-summary", "fixtures": [ { "name": "default", "options": { "titleText": "There is a problem", "errorList": [ { "text": "The date your passport was issued must be in the past", "href": "#example-error-1" }, { "text": "Enter a postcode, like AA1 1AA", "href": "#example-error-2" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": false }, { "name": "without links", "options": { "titleText": "There is a problem", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": false }, { "name": "mixed with and without links", "options": { "titleText": "There is a problem", "errorList": [ { "text": "Invalid username or password" }, { "text": "Agree to the terms of service to log in", "href": "#example-error-1" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": false }, { "name": "with everything", "options": { "titleText": "There is a problem", "descriptionText": "Please fix the errors below.", "errorList": [ { "text": "Invalid username or password" }, { "text": "Agree to the terms of service to log in", "href": "#example-error-1" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n

\n Please fix the errors below.\n

\n \n \n
\n
", "hidden": false }, { "name": "html as titleText", "options": { "titleText": "Alert, alert", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n Alert, <em>alert</em>\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "title html", "options": { "titleHtml": "Alert, alert", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n Alert, alert\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "description", "options": { "titleText": "There is a problem", "descriptionText": "Lorem ipsum", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n

\n Lorem ipsum\n

\n \n \n
\n
", "hidden": true }, { "name": "html as descriptionText", "options": { "titleText": "There is a problem", "descriptionText": "See errors below (▼)", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n

\n See errors below (▼)\n

\n \n \n
\n
", "hidden": true }, { "name": "description html", "options": { "titleText": "There is a problem", "descriptionHtml": "See errors below", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n

\n See errors below\n

\n \n \n
\n
", "hidden": true }, { "name": "classes", "options": { "titleText": "There is a problem", "classes": "extra-class one-more-class", "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "attributes", "options": { "titleText": "There is a problem", "attributes": { "first-attribute": "foo", "second-attribute": "bar" }, "errorList": [ { "text": "Invalid username or password" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "error list with attributes", "options": { "titleText": "There is a problem", "errorList": [ { "text": "Error-1", "href": "#item", "attributes": { "data-attribute": "my-attribute", "data-attribute-2": "my-attribute-2" } } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "error list with html as text", "options": { "titleText": "There is a problem", "errorList": [ { "text": "Descriptive link to the question with an error" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "error list with html", "options": { "titleText": "There is a problem", "errorList": [ { "html": "The date your passport was issued must be in the past" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "error list with html link", "options": { "titleText": "There is a problem", "errorList": [ { "html": "Descriptive link to the question with an error", "href": "#error-1" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "error list with html as text link", "options": { "titleText": "There is a problem", "errorList": [ { "text": "Descriptive link to the question with an error", "href": "#error-1" } ] }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true }, { "name": "autofocus disabled", "options": { "titleText": "There is a problem", "disableAutoFocus": true }, "html": "
\n

\n There is a problem\n

\n
\n \n \n
\n
", "hidden": true } ] }