diff --git a/README.md b/README.md index c6404cb..4acd582 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,9 @@ guide the learner’s interaction with the component. **\_feedback** (object): If the [**Tutor** extension](https://github.com/adaptlearning/adapt-contrib-tutor) is enabled, these various texts will be displayed depending on the submitted answer. **\_feedback** contains values for three types of answers: **correct**, **\_incorrect**, and **\_partlyCorrect**. Some attributes are optional. If they are not supplied, the default that is noted below will be used. ->**title** (string): If not set, the component's **displayTitle** is used as the feedback title. If **displayTitle** is not set , **title** will be used instead. +>**title** (string): Title text for the feedback that will be displayed when the question is submitted. + +>**altTitle** (string): This will be read out by screen readers as an alternative title if no visual title is included. >**correct** (string): Text that will be displayed when the submitted answer is correct. diff --git a/example.json b/example.json index 098b933..3b30e91 100644 --- a/example.json +++ b/example.json @@ -45,6 +45,7 @@ ], "_feedback":{ "title": "Feedback", + "altTitle": "Alt feedback title text", "correct": "Congratulations, this is the correct feedback.", "_incorrect": { "notFinal": "", diff --git a/schema/component.schema.json b/schema/component.schema.json index 6c08b70..19fe271 100644 --- a/schema/component.schema.json +++ b/schema/component.schema.json @@ -151,7 +151,16 @@ "title": { "type": "string", "title": "Title", - "description": "Leave blank to have the component's title shown instead", + "description": "Title text for the feedback", + "default": "", + "_adapt": { + "translatable": true + } + }, + "altTitle": { + "type": "string", + "title": "Alternative Feedback Title", + "description": "Text read out by screen readers if no visual title is included", "default": "", "_adapt": { "translatable": true