Skip to content

Commit

Permalink
Update error summary example
Browse files Browse the repository at this point in the history
Make it clearer when testing with assistive technologies exactly what is being read out.
  • Loading branch information
36degrees committed Nov 14, 2018
1 parent af475d6 commit c7a1aa9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/views/examples/error-summary/index.njk
Expand Up @@ -71,7 +71,7 @@

{{ govukInput({
label: {
"text": 'Input'
"text": 'Label for input'
},
id: "input",
name: "input",
Expand All @@ -82,7 +82,7 @@

{{ govukTextarea({
label: {
"text": 'Textarea'
"text": 'Label for textarea'
},
id: "textarea",
name: "textarea",
Expand All @@ -93,7 +93,7 @@

{{ govukSelect({
label: {
"text": 'Select'
"text": 'Label for select'
},
id: "select",
name: "select",
Expand All @@ -115,7 +115,7 @@
{{ govukDateInput({
fieldset: {
legend: {
text: 'Date Input',
text: 'Label for date input',
classes: 'test-date-input-legend'
}
},
Expand Down Expand Up @@ -144,7 +144,7 @@
{{ govukDateInput({
fieldset: {
legend: {
text: 'Date Input',
text: 'Label for date input',
classes: 'test-date-input2-legend'
}
},
Expand Down Expand Up @@ -174,7 +174,7 @@

{{ govukFileUpload({
label: {
"text": 'File'
"text": 'Label for file upload'
},
id: "file",
name: "file",
Expand All @@ -186,7 +186,7 @@
{{ govukRadios({
fieldset: {
legend: {
text: 'Radios'
text: 'Legend for radios'
},
attributes: {
id: 'test-radios'
Expand All @@ -198,12 +198,12 @@
},
items:[
{
text: 'One',
text: 'Label for first radio button',
value: 'one',
id: 'radios'
},
{
text: 'Two',
text: 'Label for second radio button',
value: 'two'
}
]
Expand All @@ -212,7 +212,7 @@
{{ govukCheckboxes({
fieldset: {
legend: {
text: 'Checkboxes'
text: 'Legend for checkboxes'
},
attributes: {
id: 'test-checkboxes'
Expand All @@ -224,12 +224,12 @@
},
items:[
{
text: 'One',
text: 'Label for first checkbox',
value: 'one',
id: "checkboxes"
},
{
text: 'Two',
text: 'Label for second checkbox',
value: 'two'
}
]
Expand All @@ -243,7 +243,7 @@
},
items:[
{
text: 'I agree to send delicious doughnuts to the Design System team at GDS',
text: 'Label for single checkbox',
value: 'agree',
id: 'single-checkbox'
}
Expand All @@ -253,7 +253,7 @@
{% set yesField %}
{{ govukInput({
label: {
"text": 'Text input'
"text": 'Label for revealed text input'
},
id: "yes-input",
name: "yes-input",
Expand All @@ -266,7 +266,7 @@
{% set noField %}
{{ govukInput({
label: {
"text": 'Text input'
"text": 'Label for revealed text input'
},
id: "no-input",
name: "no-input",
Expand All @@ -281,7 +281,7 @@
"name": "conditional",
"fieldset": {
"legend": {
"text": "Conditional?"
"text": "Legend for conditionally revealed content"
},
"classes": "govuk-radios--error",
attributes: {
Expand Down

0 comments on commit c7a1aa9

Please sign in to comment.