From f01b7fbd1516262b1c6eaf9c1cc57f459840ca7f Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 21 Apr 2021 18:34:04 +0200 Subject: [PATCH] Design and a11y fixes on Create Status forms - Use `field` CSS class to better respect Bulma styles - Fix buggy `id` on content field, causing a11y problems - Fix progress control & select styles - Various small style fixes --- .../snippets/create_status_form.html | 58 ++++++++++++------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/bookwyrm/templates/snippets/create_status_form.html b/bookwyrm/templates/snippets/create_status_form.html index 57e36d963..a74230ad1 100644 --- a/bookwyrm/templates/snippets/create_status_form.html +++ b/bookwyrm/templates/snippets/create_status_form.html @@ -6,14 +6,16 @@ {% if type == 'review' %} -
+
- +
+ +
{% endif %} -
+
{% if type != 'reply' and type != 'direct' %} -
+ + {# Supplemental fields #} {% if type == 'quotation' %} -
+
{% include 'snippets/content_warning_field.html' with parent_status=status %} - +
+ +
{% elif type == 'comment' %} -
+
{% active_shelf book as active_shelf %} {% if active_shelf.shelf.identifier == 'reading' and book.latest_readthrough %} @@ -58,11 +69,13 @@
-
- +
+
+ +
{% if readthrough.progress_mode == 'PG' and book.pages %} @@ -73,9 +86,12 @@ {% endif %}
{% endif %} - + + {# bottom bar #} -
+ + +
{% trans "Include spoiler alert" as button_text %}