--- loncom/interface/lonwhatsnew.pm 2020/12/13 02:00:49 1.129 +++ loncom/interface/lonwhatsnew.pm 2024/09/11 05:20:52 1.130 @@ -1,7 +1,7 @@ # The LearningOnline Network # What's New in a course # -# $Id: lonwhatsnew.pm,v 1.129 2020/12/13 02:00:49 raeburn Exp $ +# $Id: lonwhatsnew.pm,v 1.130 2024/09/11 05:20:52 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -769,13 +769,18 @@ sub display_threshold_config { my $onchange = 'onfocus="javascript:window.document.forms'. "['thresholdform'].elements['".$parameter."_setparmval']". '.checked=true;"'; + my $aria_textbox = ' aria-label="'.&mt('Threshold value for [_1]', + $threshold_titles{$type}).'"'; + my $aria_checkbox = ' aria-label="'.&mt('Change threshold value for [_1]', + $threshold_titles{$type}).'"'; $r->print(&Apache::loncommon::start_data_table_row()."\n". ''.$threshold_titles{$type}.''."\n". ''.&Apache::lonhtmlcommon::textbox($parameter.'_value', $threshold{$type}, - 10,$onchange).''."\n". + 10,$onchange.$aria_textbox).''."\n". ''. - &Apache::lonhtmlcommon::checkbox($parameter.'_setparmval'). + &Apache::lonhtmlcommon::checkbox($parameter.'_setparmval', + '','',$aria_checkbox). ''."\n". &Apache::loncommon::end_data_table_row()); } @@ -829,7 +834,7 @@ sub display_interval_config { '. &mt('Display:').' - '); if (ref($interval_titles) eq 'HASH') { @@ -1250,8 +1255,10 @@ sub check_thresholds { '.$stats{$part}{degdiff}.' '.$lastreset{$part}.''; if ($checkallowed->{'resetcounters'}) { + my $aria = ' aria-label="'.&mt('Reset counter for [_1] (part [_2])', + $$triggered{$symb}{title},$part).'"'; $$triggered{$symb}{text}[$partcount] .= - ''. + ''. ''; } $partcount ++;