chore(ui): clear eslint interaction accessibility bucket

Add keyboard handlers and focus support to clickable UI affordances across reader dialogs, metadata views, cards, and layout controls.

Keep the existing click behavior intact while making non-button elements operable from the keyboard and clearing the remaining template interaction accessibility backlog.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:48 -04:00
committed by Zach Yale
parent b03ecf3a5e
commit 18784fd12d
42 changed files with 293 additions and 106 deletions
@@ -191,7 +191,12 @@
<span class="author-chip" [class.main-author]="$index === 0" cdkDrag>
@if ($index === 0) { <span class="main-author-badge">m</span> }
{{ author }}
<i class="pi pi-times author-chip-remove" (click)="removeAuthor($index)"></i>
<i
class="pi pi-times author-chip-remove"
role="button"
tabindex="0"
(click)="removeAuthor($index)"
(keydown.enter)="removeAuthor($index)"></i>
</span>
}
<p-autoComplete
@@ -441,7 +446,12 @@
<span class="author-chip" [class.main-author]="$index === 0" cdkDrag>
@if ($index === 0) { <span class="main-author-badge">m</span> }
{{ author }}
<i class="pi pi-times author-chip-remove" (click)="removeAuthor($index)"></i>
<i
class="pi pi-times author-chip-remove"
role="button"
tabindex="0"
(click)="removeAuthor($index)"
(keydown.enter)="removeAuthor($index)"></i>
</span>
}
<p-autoComplete
@@ -165,7 +165,10 @@
alt="Cover"
[title]="t('originalCoverTitle')"
class="cover-image"
(click)="file.showDetails = !file.showDetails"/>
role="button"
tabindex="0"
(click)="file.showDetails = !file.showDetails"
(keydown.enter)="file.showDetails = !file.showDetails"/>
} @else {
<div [title]="t('noCoverFoundTitle')" class="cover-image cover-placeholder">?</div>
}
@@ -176,12 +179,20 @@
alt="Fetched Cover"
[title]="t('fetchedCoverTitle')"
class="cover-image"
(click)="file.showDetails = !file.showDetails"/>
role="button"
tabindex="0"
(click)="file.showDetails = !file.showDetails"
(keydown.enter)="file.showDetails = !file.showDetails"/>
} @else {
<div [title]="t('noCoverFetchedTitle')" class="cover-image cover-placeholder">?</div>
}
<div class="file-name" (click)="file.showDetails = !file.showDetails">
<div
class="file-name"
role="button"
tabindex="0"
(click)="file.showDetails = !file.showDetails"
(keydown.enter)="file.showDetails = !file.showDetails">
{{ file.file.fileName }}
</div>