Skip to content

Commit

Permalink
New: Provide default instruction text (fixes #187) (#188)
Browse files Browse the repository at this point in the history
* Provide default instruction text (#187)

* Added missing default instruction to schema
  • Loading branch information
chris-steele authored Dec 15, 2022
1 parent a35625c commit 0f22c82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"title": "MCQ",
"displayTitle": "MCQ",
"body": "Which of the following options would you consider to be correct?",
"instruction": "",
"instruction": "Choose {{#if _isRadio}}one option{{else}}one or more options{{/if}} then select Submit.",
"ariaQuestion": "Question text specifically for screen readers.",
"_attempts": 1,
"_shouldDisplayAttempts": false,
Expand Down
2 changes: 1 addition & 1 deletion properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"instruction": {
"type": "string",
"required": false,
"default": "",
"default": "Choose {{#if _isRadio}}one option{{else}}one or more options{{/if}} then select Submit.",
"inputType": "Text",
"validators": [],
"help": "This is the instruction text",
Expand Down
2 changes: 1 addition & 1 deletion schema/component.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"instruction": {
"type": "string",
"title": "Instruction",
"default": "",
"default": "Choose {{#if _isRadio}}one option{{else}}one or more options{{/if}} then select Submit.",
"_adapt": {
"translatable": true
}
Expand Down

0 comments on commit 0f22c82

Please sign in to comment.