diff --git a/properties.schema b/properties.schema index 23343ed..20d24c8 100644 --- a/properties.schema +++ b/properties.schema @@ -21,19 +21,23 @@ "translatable": true }, "labelStart": { - "type": "number", - "required": true, - "default": "1", - "inputType": "Number", + "type": "string", + "required": false, + "default": "Start of the scale", + "title": "Scale Label - start aria label", + "inputType": "Text", "validators": [], + "help": "Aria label for the start of the slider scale", "translatable": true }, "labelEnd": { - "type": "number", - "required": true, - "default": "1", - "inputType": "Number", + "type": "string", + "required": false, + "default": "End of the scale", + "title": "Scale Label - end aria label", + "inputType": "Text", "validators": [], + "help": "Aria label for the end of the slider scale", "translatable": true } }, diff --git a/schema/course.schema.json b/schema/course.schema.json index 1bd0687..fe45374 100644 --- a/schema/course.schema.json +++ b/schema/course.schema.json @@ -29,6 +29,22 @@ "_adapt": { "translatable": true } + }, + "labelStart": { + "type": "string", + "title": "Scale start ARIA label", + "default": "Start of the scale", + "_adapt": { + "translatable": true + } + }, + "labelEnd": { + "type": "string", + "title": "Scale end ARIA label", + "default": "End of the scale", + "_adapt": { + "translatable": true + } } } } diff --git a/templates/confidenceSlider.jsx b/templates/confidenceSlider.jsx index 77f4c47..9ef0b38 100644 --- a/templates/confidenceSlider.jsx +++ b/templates/confidenceSlider.jsx @@ -73,16 +73,18 @@ export default function ConfidenceSlider (props) {