-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed PR comment and update visual tests
- Loading branch information
Showing
10 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...s-with-revealed-text-area-and-character-limit-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es-with-revealed-text-area-and-character-limit-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es-with-revealed-text-area-and-character-limit-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...checkboxes-with-revealed-text-area-and-character-limit_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...-checkboxes-with-revealed-text-area-and-character-limit_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...-checkboxes-with-revealed-text-area-and-character-limit_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
68 changes: 68 additions & 0 deletions
68
...ts/checkboxes/example-checkboxes-with-revealed-text-area-and-character-limit-expanded.njk
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,68 @@ | ||
{% from "components/question/_macro.njk" import onsQuestion %} | ||
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %} | ||
|
||
{% | ||
call onsQuestion({ | ||
"title": "Do you have any dietary requirements?", | ||
"legendIsQuestionTitle": true, | ||
"classes": "ons-u-mt-no" | ||
}) | ||
%} | ||
{{ | ||
onsCheckboxes({ | ||
"checkboxesLabel": "Select all that apply", | ||
"dontWrap": true, | ||
"checkboxes": [ | ||
{ | ||
"id": "gluten-free-example-checkbox-with-revealed-text-area", | ||
"label": { | ||
"text": "Gluten free" | ||
}, | ||
"value": "gluten-free" | ||
}, | ||
{ | ||
"id": "lactose-intolerant-example-checkbox-with-revealed-text-area", | ||
"label": { | ||
"text": "Lactose intolerant" | ||
}, | ||
"value": "lactose-intolerant" | ||
}, | ||
{ | ||
"id": "vegan-example-checkbox-with-revealed-text-area", | ||
"label": { | ||
"text": "Vegan" | ||
}, | ||
"value": "vegan" | ||
}, | ||
{ | ||
"id": "vegetarian-example-checkbox-with-revealed-text-area", | ||
"label": { | ||
"text": "Vegetarian" | ||
}, | ||
"value": "vegetarian" | ||
}, | ||
{ | ||
"id": "other-checkbox-with-revealed-text-area", | ||
"label": { | ||
"text": "Other" | ||
}, | ||
"value": "other", | ||
"checked": true, | ||
"other": { | ||
"otherType": "textarea", | ||
"id": "other-textbox-example-checkbox-with-revealed-text-area", | ||
"name": "other-answer", | ||
"label": { | ||
"text": "Provide more details" | ||
}, | ||
"charCheckLimit": { | ||
"limit": 200, | ||
"charCountSingular": "You have {x} character remaining", | ||
"charCountPlural": "You have {x} characters remaining" | ||
} | ||
} | ||
} | ||
] | ||
}) | ||
}} | ||
{% endcall %} |
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