diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-27 21:18:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-27 21:18:16 +0200 |
| commit | 3f4a886fcaad3ea5615a9e5bde8cd66df4ce50b9 (patch) | |
| tree | eb83009a2517518abb3396aaac2c080f220dee21 | |
| parent | a19537eea27d72429789c0b8518fcfbcc6d68e3c (diff) | |
Add modal-title placeholder for W3C validation
The aria-labelledby needs a static element in HTML since the validator
doesn't execute JavaScript. Added placeholder h2 that gets replaced
when modal opens.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
| -rw-r--r-- | index.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ <!-- Modal for book details --> <div class="modal-overlay" id="book-modal" role="dialog" aria-modal="true" aria-labelledby="modal-title"> <div class="modal-content" id="modal-content"> - <!-- Modal content populated by JavaScript --> + <h2 id="modal-title" class="visually-hidden">Book Details</h2> </div> </div> |
