Skip to content

Commit 49fb0aa

Browse files
Update remaining img tags with improved alt text
1 parent 870cd7a commit 49fb0aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎frontend/js/app.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class BookRenderer {
668668
scene.innerHTML = `
669669
<div class="book" data-id="${escapeHTML(id)}">
670670
<div class="book__face book__face--front">
671-
<img src="${safeThumb}" alt="${safeTitle}">
671+
<img src="${safeThumb}" alt="Cover of '${safeTitle}' by ${safeAuthors || 'Unknown Author'}">
672672
</div>
673673
<div class="book__face book__face--spine" style="background: ${randomSpine}"></div>
674674
<div class="book__face book__face--right"></div>
@@ -4167,7 +4167,7 @@ async function triggerOfflineLibraryView() {
41674167
bookCard.className = 'book-card offline-card';
41684168
bookCard.innerHTML = `
41694169
<div class="book-cover-wrapper">
4170-
<img src="${book.coverUrl || '../assets/images/default-cover.png'}" alt="${book.title}" class="book-cover-img" />
4170+
<img src="${book.coverUrl || '../assets/images/default-cover.png'}" alt="Cover of '${book.title}' by ${book.author || 'Unknown Author'}" class="book-cover-img" />
41714171
</div>
41724172
<div class="book-details">
41734173
<h3>${book.title}</h3>

0 commit comments

Comments
 (0)