diff --git a/templates/matching.jsx b/templates/matching.jsx index 87a07af..abce671 100644 --- a/templates/matching.jsx +++ b/templates/matching.jsx @@ -48,6 +48,8 @@ export default function Matching(props) { }, index) => { const activeOption = _options.find(option => (option._itemIndex === _index) && option._isActive); const displayItemAsCorrect = (!_isEnabled && _shouldShowMarking && (_isCorrectAnswerShown || activeOption?._shouldBeSelected)); + const questionTitleId = `${_id}-matching-item-${_index}__title`; + const questionTextId = `${_id}-matching-item-${_index}__text`; const hasMultipleCorrectAnswers = _correctAnswers.length > 1; return ( @@ -61,14 +63,14 @@ export default function Matching(props) { {text &&
-
+
}
- +
diff --git a/templates/matchingDropDown.jsx b/templates/matchingDropDown.jsx index 6500af9..94a438d 100644 --- a/templates/matchingDropDown.jsx +++ b/templates/matchingDropDown.jsx @@ -181,9 +181,11 @@ export default function MatchingDropDown(props) { onMouseDown={onStartInteraction} onTouchStart={onStartInteraction} onClick={onButtonClick} - ref={button}> + ref={button} + aria-labelledby={props.questionTitleId + ' ' + props.questionTextId} + > - +