Skip to content

Commit

Permalink
SAK-46118 Samigo: prevented merging of question number and point valu…
Browse files Browse the repository at this point in the history
…e for screen readers
  • Loading branch information
fostersdesign authored and Miguel Pellicer committed Aug 31, 2021
1 parent 267a057 commit dbddf17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ document.links[newindex].onclick();
<h:dataTable width="100%" value="#{part.itemContents}" var="question">
<h:column>
<h:panelGroup layout="block" styleClass="input-group col-sm-6">
<span class="input-group-addon">
<p class="input-group-addon">
<h:outputText value="<a name='p#{part.number}q#{question.number}'></a>" escape="false" />
<h:outputText value="#{deliveryMessages.q} #{question.sequence} #{deliveryMessages.of} #{part.numbering}"/>
</span>
</p>
<%-- REVIEW ASSESSMENT --%>
<h:inputText styleClass="form-control adjustedScore" value="#{question.pointsDisplayString}" disabled="true" rendered="#{delivery.actionString=='reviewAssessment'}"/>
<span class="input-group-addon">
<p class="input-group-addon">
<%-- REVIEW ASSESSMENT --%>
<h:outputText value="#{question.roundedMaxPointsToDisplay} #{deliveryMessages.pt}" rendered="#{delivery.actionString=='reviewAssessment'}"/>
<%-- DELIVER ASSESSMENT --%>
Expand All @@ -337,7 +337,7 @@ document.links[newindex].onclick();
<h:outputText value="#{deliveryMessages.discount} #{question.itemData.discount} " rendered="#{question.itemData.discount!='0.0' && delivery.settings.displayScoreDuringAssessments != '2' && question.itemData.scoreDisplayFlag}" >
<f:convertNumber maxFractionDigits="2" groupingUsed="false"/>
</h:outputText>
</span>
</p>
<h:outputText styleClass="extraCreditLabel" rendered="#{question.itemData.isExtraCredit == true}" value="#{deliveryMessages.extra_credit_preview}" />
</h:panelGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,18 @@ function toPoint(id)
<t:dataList value="#{part.itemContents}" var="question" itemStyleClass="page-header question-box" styleClass="question-wrapper" layout="unorderedList">
<h:outputText value="<a name=\"#{part.number}_#{question.number}\"></a>" escape="false" />
<h:panelGroup layout="block" styleClass="input-group col-sm-6">
<span class="input-group-addon">
<p class="input-group-addon">
<h:outputText value="#{deliveryMessages.q} #{question.sequence} #{deliveryMessages.of} " />
<h:outputText value="#{part.numbering}#{deliveryMessages.column} " />
</span>
</p>
<h:inputText styleClass="form-control adjustedScore#{studentScores.assessmentGradingId}.#{question.itemData.itemId}" id="adjustedScore" value="#{question.pointsForEdit}" onchange="toPoint(this.id);"
validatorMessage="#{evaluationMessages.number_format_error_adjusted_score}">
<f:validateDoubleRange/>
</h:inputText>
<span class="input-group-addon">
<p class="input-group-addon">
<h:outputText value=" #{deliveryMessages.splash} #{question.roundedMaxPointsToDisplay} " />
<h:outputText value="#{deliveryMessages.pt}"/>
</span>
</p>
<h:message for="adjustedScore" style="color:red"/>
<h:outputText styleClass="extraCreditLabel" rendered="#{question.itemData.isExtraCredit == true}" value=" #{deliveryMessages.extra_credit_preview}" />
</h:panelGroup>
Expand Down

0 comments on commit dbddf17

Please sign in to comment.