Skip to content

Commit e2c9328

Browse files
committed
A11y patch.
1 parent edfb73f commit e2c9328

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

assets/default/frontend.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
{FE_Content}
2121
<hr />
2222
<div class="footbox">
23-
<div class="start">{DateTime}<!-- Logged In Begin --><span class="clockBlock"><span class="clockBlock clockHours auxbl" id="clockhours"></span><span class="clockBlock clockMinutes auxrd" id="clockminutes"></span><span class="clockBlock clockSeconds auxgn" id="clockseconds"></span><span class="clockBlock clockFace auxbl"></span></span> <span id="clockface"></span><script type="text/javascript">updateClock();setInterval(updateClock, 1000);</script><!-- Logged In End --></div>
23+
<div class="start">{DateTime}<!-- Logged In Begin --><span role="timer" aria-live="off"><span class="clockBlock"><span class="clockBlock clockHours auxbl" id="clockhours"></span><span class="clockBlock clockMinutes auxrd" id="clockminutes"></span><span class="clockBlock clockSeconds auxgn" id="clockseconds"></span><span class="clockBlock clockFace auxbl"></span></span> <span id="clockface"></span><script type="text/javascript">updateClock();setInterval(updateClock, 1000);</script></span><!-- Logged In End --></div>
2424
<div class="end txtBl">{GeneratedBy}</div>
2525
</div>
26-
</div><br /></div>
26+
</div><br /></div><!-- Logged In Begin --><script type="text/javascript">document.querySelectorAll('div[role="button"][onclick]:not(div[onkeydown]),span[role="button"][onclick]:not(span[onkeydown]),div[role="link"][onclick]:not(div[onkeydown]),span[role="link"][onclick]:not(span[onkeydown]),li[role="link"][onclick]:not(li[onkeydown])').forEach((x)=>{x.addEventListener('keydown',(e=>{if(e.keyCode===13||e.keyCode===32){event.preventDefault();x.onclick(e)}}))})</script><!-- Logged In End -->
27+
2728
{CustomFooter}</body>
2829

2930
</html>

assets/fullmoon/frontend.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,5 @@ input[type=checkbox],input[type=radio]{accent-color:#cca}
169169
.duo{display:grid;gap:2px;grid-template-columns:1fr 1fr;justify-content:stretch;justify-items:stretch}
170170
.col+.col,.col+.quad,.col+.duo,.quad+.col,.quad+.quad,.quad+.duo,.duo+.col,.duo+.quad,.duo+.duo{margin-top:2px;margin-{FE_Align_Reverse}:1px}
171171
.reverse{text-align:{FE_Align_Reverse}}
172-
.gridboxitem,.gridboxcheckcell,.gridboxstretch,.va{align-content:center}
173172
.stickybox .pieul li{list-style-type:none}
173+
.gridboxitem,.gridboxcheckcell,.gridboxstretch,.va{align-content:center}

src/pages/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The configuration page (last modified: 2025.09.25).
11+
* This file: The configuration page (last modified: 2025.09.29).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -68,7 +68,7 @@
6868
$ThisDir['DirName'] = $this->ltrInRtf($CatKey . '' . $DirKey) . ':';
6969
$ThisDir['Friendly'] = $this->Loader->L10N->getString('config.' . $CatKey . '_' . $DirKey . '_label') ?: $DirKey;
7070
$CatData .= sprintf(
71-
'<li onclick="javascript:toggleconfigNav(\'%1$sRow\',\'%1$sShowLink\');setTimeout(()=>{location.href=\'#%2$s\'},500)" class="pseudolink">%3$s</li>',
71+
'<li onclick="javascript:toggleconfigNav(\'%1$sRow\',\'%1$sShowLink\');setTimeout(()=>{location.href=\'#%2$s\'},500)" class="pseudolink" tabindex="0" role="link">%3$s</li>',
7272
$CatKey,
7373
$ThisDir['DirLangKey'],
7474
$ThisDir['Friendly']

0 commit comments

Comments
 (0)