Adapt tab handler to vanilla JS, fix focus jump, improve accessible naming of tabs/panels

This commit is contained in:
Ned Zimmerman
2021-02-28 14:04:04 -04:00
parent b324e668ca
commit 263b13f157
6 changed files with 269 additions and 266 deletions

View File

@ -1,7 +1,7 @@
{% load bookwyrm_tags %}
<div class="cover-container is-{{ size }}">
{% if book.cover %}
<img class="book-cover" src="/images/{{ book.cover }}" alt="{{ book.alt_text }}" title="{{ book.alt_text }}">
<img class="book-cover" src="/images/{{ book.cover }}" alt="{{ book.alt_text }}">
{% else %}
<div class="no-cover book-cover">
<img class="book-cover" src="/static/images/no_cover.jpg" alt="No cover">