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:
@@ -47,7 +47,12 @@
|
||||
@if (allAuthors(); as authors) {
|
||||
<p class="series-authors">
|
||||
@for (author of authors; track $index; let isLast = $last) {
|
||||
<a class="author-link" (click)="goToAuthorBooks(author)">{{ author }}</a>
|
||||
<a
|
||||
class="author-link"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
(click)="goToAuthorBooks(author)"
|
||||
(keydown.enter)="goToAuthorBooks(author)">{{ author }}</a>
|
||||
@if (!isLast) {<span>, </span>}
|
||||
}
|
||||
</p>
|
||||
@@ -58,7 +63,12 @@
|
||||
<div class="categories-scroll">
|
||||
<div class="categories-list">
|
||||
@for (category of categories; track category) {
|
||||
<a (click)="goToCategory(category)" class="category-link">
|
||||
<a
|
||||
class="category-link"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
(click)="goToCategory(category)"
|
||||
(keydown.enter)="goToCategory(category)">
|
||||
<app-tag color="red" size="xs">{{ category }}</app-tag>
|
||||
</a>
|
||||
}
|
||||
@@ -70,7 +80,12 @@
|
||||
<div class="metadata-cards">
|
||||
@if (allPublishers(); as publishers) {
|
||||
@if (publishers.length) {
|
||||
<span class="meta-card meta-card-publisher" (click)="goToPublisher(publishers[0])">
|
||||
<span
|
||||
class="meta-card meta-card-publisher"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
(click)="goToPublisher(publishers[0])"
|
||||
(keydown.enter)="goToPublisher(publishers[0])">
|
||||
<i class="pi pi-building"></i>
|
||||
@for (pub of publishers; track pub; let isLast = $last) {
|
||||
{{ pub }}{{ isLast ? '' : ', ' }}
|
||||
@@ -165,7 +180,12 @@
|
||||
<!-- Next Up + Progress (pushed to bottom, aligned with cover) -->
|
||||
<div class="hero-status">
|
||||
@if (nextUp(); as nextUp) {
|
||||
<div class="next-up-card" (click)="readBook(nextUp.book.id)">
|
||||
<div
|
||||
class="next-up-card"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
(click)="readBook(nextUp.book.id)"
|
||||
(keydown.enter)="readBook(nextUp.book.id)">
|
||||
<img [src]="nextUp.thumbnailUrl"
|
||||
[alt]="nextUp.book.metadata?.title || ''"
|
||||
class="next-up-thumb"
|
||||
|
||||
Reference in New Issue
Block a user