Skip to content

Commit d9a1a41

Browse files
authored
Accessibility - Teacher - Submission - Grades - Add header trait to "Grade" and "Rubric" labels (#3130)
refs: MBL-18438 affects: Teacher release note: None test plan: VoiceOver should read "Grade" and "Rubric" labels as headers.
1 parent 7a9e15a commit d9a1a41

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Teacher/Teacher/SpeedGrader/RubricAssessor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct RubricAssessor: View {
3939
VStack(alignment: .leading, spacing: 0) {
4040
Text("Rubric", bundle: .teacher)
4141
.font(.heavy24).foregroundColor(.textDarkest)
42+
.accessibilityAddTraits(.isHeader)
4243
Text("\(currentScore, specifier: "%g") out of \(assignment.rubricPointsPossible ?? 0, specifier: "%g")", bundle: .teacher)
4344
.font(.medium14).foregroundColor(.textDark)
4445
}

Teacher/Teacher/SpeedGrader/SubmissionGrades.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ struct SubmissionGrades: View {
7575
VStack(spacing: 0) {
7676
HStack(spacing: 0) {
7777
Text("Grade", bundle: .teacher)
78+
.accessibilityAddTraits(.isHeader)
7879
Spacer()
7980
if isSaving {
8081
ProgressView()

0 commit comments

Comments
 (0)