[LON-CAPA-cvs] cvs: loncom /interface courseprefs.pm
raeburn
raeburn at source.lon-capa.org
Sat Apr 18 01:50:17 EDT 2026
raeburn Sat Apr 18 05:50:17 2026 EDT
Modified files:
/loncom/interface courseprefs.pm
Log:
- WCAG 2 compliance -- include labels for form elements.
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.143 loncom/interface/courseprefs.pm:1.144
--- loncom/interface/courseprefs.pm:1.143 Sat Mar 28 18:10:32 2026
+++ loncom/interface/courseprefs.pm Sat Apr 18 05:50:17 2026
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.143 2026/03/28 18:10:32 raeburn Exp $
+# $Id: courseprefs.pm,v 1.144 2026/04/18 05:50:17 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6583,6 +6583,7 @@
$domdefmaxsize),
},
order => ['','1'],
+ id => 'maxsizepdfform',
},
);
return &make_item_rows($cdom,\%items,$ordered,$settings,$rowtotal,$crstype,'printouts',$noedit);
@@ -8466,7 +8467,8 @@
$maxsizetype = 'text';
$maxsizesty = 'inline';
}
- $datatable .= '<input id="maxsizepdfnum" name="maxsizepdfnum" type="'.$maxsizetype.'" value="'.$maxsize.'" size="5">'.
+ my $arialabel = &mt('Course-specific maximum size (MB) for uploaded PDF');
+ $datatable .= '<input id="maxsizepdfnum" name="maxsizepdfnum" type="'.$maxsizetype.'" value="'.$maxsize.'" size="5" aria-label="'.$arialabel.'">'.
'<span id="maxsizepdfunit" style="display:'.$maxsizesty.';"> '.&mt('MB').'</span>';
}
} elsif ($items->{$item}{input} eq 'textbox') {
More information about the LON-CAPA-cvs
mailing list