1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-15 23:47:24 +02:00

Accessibility: improve table semantics and ARIA usage (#2553)

This commit is contained in:
Tim in 't Veld
2026-04-08 15:00:38 +02:00
committed by GitHub
parent c7250b58cd
commit 35a18b81d1
9 changed files with 58 additions and 52 deletions

View File

@@ -28,9 +28,9 @@
<table id="ssl_domains" class="table" style="margin-bottom: 2em; width: auto; display: none">
<thead>
<tr>
<th>Domain</th>
<th>Certificate Status</th>
<th>Actions</th>
<th scope="col">Domain</th>
<th scope="col">Certificate Status</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
@@ -101,7 +101,7 @@ function show_tls(keep_provisioning_shown) {
$('#ssldomain').html('<option value="">(select)</option>');
$('#ssl_domains').show();
for (var i = 0; i < domains.length; i++) {
var row = $("<tr><th class='domain'><a href=''></a></th><td class='status'></td> <td class='actions'><a href='#' onclick='return ssl_install(this);' class='btn btn-xs'>Install Certificate</a></td></tr>");
var row = $("<tr><th scope='row' class='domain'><a href=''></a></th><td class='status'></td> <td class='actions'><a href='#' onclick='return ssl_install(this);' class='btn btn-xs'>Install Certificate</a></td></tr>");
tb.append(row);
row.attr('data-domain', domains[i].domain);
row.find('.domain a').text(domains[i].domain);