From 937a7dd1af625bda62b72eaef22c7f3b797c5cbe Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 17 Jan 2021 16:48:05 -0800 Subject: [PATCH] Uses clickable dropdowns and improves styling on menu buttons screenreader legible --- .../snippets/components/dropdown.html | 2 +- .../templates/snippets/shelf_selector.html | 4 +-- .../templates/snippets/shelve_button.html | 33 +------------------ .../snippets/shelve_button_dropdown.html | 28 ++++++++++++++++ .../templates/snippets/status_options.html | 2 +- 5 files changed, 33 insertions(+), 36 deletions(-) create mode 100644 bookwyrm/templates/snippets/shelve_button_dropdown.html diff --git a/bookwyrm/templates/snippets/components/dropdown.html b/bookwyrm/templates/snippets/components/dropdown.html index 48a808d48..1e45fe51a 100644 --- a/bookwyrm/templates/snippets/components/dropdown.html +++ b/bookwyrm/templates/snippets/components/dropdown.html @@ -1,6 +1,6 @@ {% load bookwyrm_tags %} {% with 0|uuid as uuid %} - diff --git a/bookwyrm/templates/snippets/shelve_button_dropdown.html b/bookwyrm/templates/snippets/shelve_button_dropdown.html new file mode 100644 index 000000000..212770f18 --- /dev/null +++ b/bookwyrm/templates/snippets/shelve_button_dropdown.html @@ -0,0 +1,28 @@ +{% extends 'snippets/components/dropdown.html' %} +{% block dropdown-trigger %} + + More shelves + +{% endblock %} + +{% block dropdown-list %} +{% for shelf in request.user.shelf_set.all %} +
  • + {% if active_shelf.shelf.identifier != 'reading' and shelf.identifier == 'reading' %} + + {% else %} + + {% endif %} +
  • +{% endfor %} +{% endblock %} + diff --git a/bookwyrm/templates/snippets/status_options.html b/bookwyrm/templates/snippets/status_options.html index 5a9036be3..6cd13dfdb 100644 --- a/bookwyrm/templates/snippets/status_options.html +++ b/bookwyrm/templates/snippets/status_options.html @@ -10,7 +10,7 @@