[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Sun Oct 13 18:14:58 EDT 2024


raeburn		Sun Oct 13 22:14:58 2024 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
    /loncom/xml	lonxml.pm 
  Log:
  - WCAG 2 compliance
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1442 loncom/interface/loncommon.pm:1.1443
--- loncom/interface/loncommon.pm:1.1442	Sat Oct 12 21:41:25 2024
+++ loncom/interface/loncommon.pm	Sun Oct 13 22:14:58 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1442 2024/10/12 21:41:25 raeburn Exp $
+# $Id: loncommon.pm,v 1.1443 2024/10/13 22:14:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7298,6 +7298,16 @@
   display: inline;
 }
 
+.LC_visually_hidden:not(:focus):not(:active) {
+    clip-path: inset(50%);
+    height: 1px;
+    overflow: hidden;
+    position: absolute;
+    white-space: nowrap;
+    width: 1px;
+    display: inline;
+}
+
 .LC_menus_content.shown{
   display: block;
 }
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.574 loncom/xml/lonxml.pm:1.575
--- loncom/xml/lonxml.pm:1.574	Wed Sep 25 00:15:10 2024
+++ loncom/xml/lonxml.pm	Sun Oct 13 22:14:58 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module
 #
-# $Id: lonxml.pm,v 1.574 2024/09/25 00:15:10 raeburn Exp $
+# $Id: lonxml.pm,v 1.575 2024/10/13 22:14:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1615,7 +1615,8 @@
 					 'dv' => 'Discard Edits and View',
 					 'un' => 'Undo',
 					 'ed' => 'Edit',
-					 'ew' => 'Edit with Daxe');
+					 'ew' => 'Edit with Daxe',
+					 'er' => 'Editor');
       my $spelllink = &Apache::lonhtmlcommon::spelllink('xmledit','filecont');
       my $textarea_events = &Apache::edit::element_change_detection();
       my $form_events     = &Apache::edit::form_change_detection();
@@ -1671,7 +1672,7 @@
       $undo $deps_button $daxebutton $dragmath_button $htmlerror
     </div>
   </div>
-  <textarea $textarea_events style="width:100%" cols="80" rows="44" name="filecont" id="filecont" $textareaclass>$filecontents</textarea><br />$spelllink
+  <textarea $textarea_events style="width:100%" cols="80" rows="44" name="filecont" id="filecont" $textareaclass>$filecontents</textarea><br /><label for="filecont" class="LC_visually_hidden">$lt{'er'}</label>$spelllink
   <div id="LC_aftertextarea">
     <br />
     $titledisplay




More information about the LON-CAPA-cvs mailing list