[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm structuretags.pm /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Sat Mar 1 12:20:16 EST 2025
raeburn Sat Mar 1 17:20:16 2025 EDT
Modified files:
/loncom/homework inputtags.pm structuretags.pm
/loncom/interface loncommon.pm
Log:
- WCAG 2 compliance.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.363 loncom/homework/inputtags.pm:1.364
--- loncom/homework/inputtags.pm:1.363 Thu Feb 20 03:56:52 2025
+++ loncom/homework/inputtags.pm Sat Mar 1 17:20:14 2025
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.363 2025/02/20 03:56:52 raeburn Exp $
+# $Id: inputtags.pm,v 1.364 2025/03/01 17:20:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1699,9 +1699,10 @@
} else {
if ($message) {
if ($usediv) {
- $message = '<span class="LC_prob_status">'."\n".
- '<span class="'."$tdclass $css_class".'">'.$message.'</span>'."\n".
- '</span>';
+ $message = '<div class="LC_prob_status_outer">'.
+ '<div class="LC_prob_status_inner '."$tdclass $css_class".'">'.
+ $message.'</div>'."\n".
+ '</div>';
} else {
$message="<td class=\"$tdclass $css_class\">$message</td>";
}
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.589 loncom/homework/structuretags.pm:1.590
--- loncom/homework/structuretags.pm:1.589 Wed Feb 19 23:31:46 2025
+++ loncom/homework/structuretags.pm Sat Mar 1 17:20:14 2025
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.589 2025/02/19 23:31:46 raeburn Exp $
+# $Id: structuretags.pm,v 1.590 2025/03/01 17:20:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -371,7 +371,7 @@
if (submithandled == 0) {
submithandled = 1;
\$( "#msg_"+buttonId ).css({"display": "inline","background-color": "#87cefa",
- "color": "black","padding": "2px"}) ;
+ "color": "black","padding": "5px"}) ;
if (( \$(this.form).attr("id") == "LC_page" ) && (\$('input[name="all_submit"]').length )) {
if (buttonId != "all_submit") {
\$( ".LC_status_"+buttonId ).hide();
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1466 loncom/interface/loncommon.pm:1.1467
--- loncom/interface/loncommon.pm:1.1466 Wed Feb 26 23:04:40 2025
+++ loncom/interface/loncommon.pm Sat Mar 1 17:20:16 2025
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1466 2025/02/26 23:04:40 raeburn Exp $
+# $Id: loncommon.pm,v 1.1467 2025/03/01 17:20:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8296,12 +8296,22 @@
padding: 6px;
}
-.LC_prob_status {
- margin-top: 5px;
- padding-top: 0;
- padding-left: 0;
- padding-bottom: 0;
- padding-right: 5px;
+span.LC_prob_status {
+ margin: 5px 0 0 0;
+ padding: 0 5px 0 0;
+ vertical-align: middle;
+}
+
+div.LC_prob_status_outer {
+ display: inline-block;
+ margin: -5px 0 0 0;
+ padding: 0;
+}
+
+div.LC_prob_status_inner {
+ display: inline-block;
+ margin: 0 5px 0 0;
+ padding: 5px;
}
.LC_mail_actions {
More information about the LON-CAPA-cvs
mailing list