Skip to content

Commit 9ed195c

Browse files
rdhyeeclaude
andcommitted
#323: row-specific aria-label on Source URL links (Codex review)
Screen-reader users tabbing down the column otherwise hear an undifferentiated list of identical "record ↗" links. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AjnkWb4HpuLeDbYfzmY3X9
1 parent fa1d74f commit 9ed195c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

explorer.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,8 +2683,11 @@ tableView = {
26832683
// dedicated, honestly-labeled cell; activateRow ignores clicks
26842684
// that originate inside an <a> so the row doesn't also fly.
26852685
const rowSrcUrl = sourceUrl(r.pid);
2686+
// Row-specific aria-label (Codex review): screen-reader users
2687+
// tabbing the column hear WHICH record each identical
2688+
// "record ↗" link opens.
26862689
const srcUrlHtml = rowSrcUrl
2687-
? `<a class="row-source-link" href="${escapeHtml(rowSrcUrl)}" target="_blank" rel="noopener noreferrer" title="Open this sample's record at its source repository">record ↗</a>`
2690+
? `<a class="row-source-link" href="${escapeHtml(rowSrcUrl)}" target="_blank" rel="noopener noreferrer" title="Open this sample's record at its source repository" aria-label="Open record for ${safeLabel} at its source repository">record ↗</a>`
26882691
: '';
26892692
// #311: material/context/object_type are URIs (from facets_url,
26902693
// joined in loadPage()); resolve to human labels the same way

0 commit comments

Comments
 (0)