From faf2b0e5ea34b79e2753d0ced1515ce8943edb4f Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Fri, 6 Jan 2023 16:44:04 -0600 Subject: [PATCH 1/8] Update example.json --- example.json | 1 + 1 file changed, 1 insertion(+) diff --git a/example.json b/example.json index 3065212..d3b743c 100644 --- a/example.json +++ b/example.json @@ -9,6 +9,7 @@ "displayTitle": "Slider type component", "body": "Question text here", "instruction": "Drag the slider to make your choice and select Submit.", + "ariaQuestion": "Question text specifically for screen readers.", "_attempts": 1, "_shouldDisplayAttempts": false, "_questionWeight": 1, From 79472af32b901106d9f0b573c3b2902a38b0728e Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Fri, 6 Jan 2023 16:44:55 -0600 Subject: [PATCH 2/8] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8f2de65..b51d107 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ In addition to the attributes specifically listed below, [*question components*] **instruction** (string): This optional text appears above the component. It is frequently used to guide the learner’s interaction with the component. +**ariaQuestion** (string): This will be read out by screen readers instead of reading the title, body & instruction fields when focusing on the group or radiogroup. + **\_attempts** (integer): This specifies the number of times a learner is allowed to submit an answer. The default is `1`. **\_shouldDisplayAttempts** (boolean): Determines whether or not the text set in **remainingAttemptText** and **remainingAttemptsText** will be displayed. These two attributes are part of the [core buttons](https://github.com/adaptlearning/adapt_framework/wiki/Core-Buttons) attribute group. The default is `false`. From 79df2324e40d44dacb2f35d8cd41f741852a95ed Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Fri, 6 Jan 2023 16:45:37 -0600 Subject: [PATCH 3/8] Update properties.schema --- properties.schema | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/properties.schema b/properties.schema index ccb4233..84f8396 100644 --- a/properties.schema +++ b/properties.schema @@ -77,6 +77,15 @@ "help": "This is the instruction text", "translatable": true }, + "ariaQuestion": { + "type": "string", + "required": false, + "default": "", + "inputType": "Text", + "validators": [], + "help": "This will be read out by screen readers instead of reading the title, body & instruction fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", + "translatable": true + }, "_attempts": { "type": "number", "required": true, From fc57308f3c8e6ba16b870768731000c0b9bad6cd Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Fri, 6 Jan 2023 16:45:56 -0600 Subject: [PATCH 4/8] Update slider.jsx --- templates/slider.jsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/templates/slider.jsx b/templates/slider.jsx index abe9b4d..ddeab0c 100644 --- a/templates/slider.jsx +++ b/templates/slider.jsx @@ -3,11 +3,16 @@ import { classes, templates } from 'core/js/reactHelpers'; export default function Slider (props) { const { + _id, _globals, _shouldShowMarking, _isInteractionComplete, _isEnabled, _isCorrect, + displayTitle, + body, + instruction, + ariaQuestion, labelStart, labelEnd, _userAnswer, @@ -21,13 +26,17 @@ export default function Slider (props) { -
+
{(labelStart || labelEnd) &&
From d0abc0823aefc9f1d6e03ec3aafde81b6eef1d33 Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Fri, 6 Jan 2023 16:46:15 -0600 Subject: [PATCH 5/8] Update component.schema.json --- schema/component.schema.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/schema/component.schema.json b/schema/component.schema.json index 1891802..154e36a 100644 --- a/schema/component.schema.json +++ b/schema/component.schema.json @@ -34,6 +34,15 @@ "translatable": true } }, + "ariaQuestion": { + "type": "string", + "title": "ariaQuestion", + "description": "This will be read out by screen readers instead of reading the displayTitle, body & instruction fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", + "default": "", + "_adapt": { + "translatable": true + } + }, "_attempts": { "type": "number", "title": "Allowed attempts", From 71a4488410d933db8f5fbc6cf98e3258998fa7ca Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Mon, 9 Jan 2023 08:55:35 -0600 Subject: [PATCH 6/8] Update properties.schema Updated to reflect correct usage of AAT UI elements. --- properties.schema | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.schema b/properties.schema index 84f8396..8e866fa 100644 --- a/properties.schema +++ b/properties.schema @@ -83,7 +83,7 @@ "default": "", "inputType": "Text", "validators": [], - "help": "This will be read out by screen readers instead of reading the title, body & instruction fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", + "help": "This will be read out by screen readers instead of reading the 'Display title', 'Body' & 'Instruction' fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", "translatable": true }, "_attempts": { From 98252e956055516856889024eef6ad22002d9df1 Mon Sep 17 00:00:00 2001 From: Joseph Replin Date: Mon, 9 Jan 2023 09:06:18 -0600 Subject: [PATCH 7/8] Update component.schema.json Updated to reflect correct usage of AAT UI elements. --- schema/component.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/component.schema.json b/schema/component.schema.json index 154e36a..7a96421 100644 --- a/schema/component.schema.json +++ b/schema/component.schema.json @@ -36,8 +36,8 @@ }, "ariaQuestion": { "type": "string", - "title": "ariaQuestion", - "description": "This will be read out by screen readers instead of reading the displayTitle, body & instruction fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", + "title": "ARIA question", + "description": "This will be read out by screen readers instead of reading the 'Display title', 'Body' & 'Instruction' fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", "default": "", "_adapt": { "translatable": true From b580cfeaa1853cb1a73f07150383666f2a6ded3e Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Mon, 30 Jan 2023 11:45:06 +0000 Subject: [PATCH 8/8] Update properties.schema --- properties.schema | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.schema b/properties.schema index 8e866fa..2cad1a7 100644 --- a/properties.schema +++ b/properties.schema @@ -83,7 +83,7 @@ "default": "", "inputType": "Text", "validators": [], - "help": "This will be read out by screen readers instead of reading the 'Display title', 'Body' & 'Instruction' fields when focusing on the options. To be clear and concise, ensure the text encompasses only the question associated.", + "help": "This will be read out by screen readers instead of reading the 'Display title', 'Body' & 'Instruction' fields when focusing on the when focusing on the group or radiogroup. To be clear and concise, ensure the text encompasses only the question associated.", "translatable": true }, "_attempts": {