From 8f0eb841729f2e46001d0328ec791fbffe196f03 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 18 Jan 2021 08:54:25 -0800 Subject: [PATCH] Uses actual label text in toggle button, not the word "label" --- bookwyrm/templates/snippets/toggle/toggle_button.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/snippets/toggle/toggle_button.html b/bookwyrm/templates/snippets/toggle/toggle_button.html index b2b93398..d6fd0a36 100644 --- a/bookwyrm/templates/snippets/toggle/toggle_button.html +++ b/bookwyrm/templates/snippets/toggle/toggle_button.html @@ -4,7 +4,7 @@ data-controls="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}" {% if focus %}data-focus-target="{{ focus }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"{% endif %} {% if checkbox %}data-controls-checkbox="{{ checkbox }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"{% endif %} - {% if label %}aria-label="label"{% endif %} + {% if label %}aria-label="{{ label }}"{% endif %} aria-pressed="{% if pressed %}true{% else %}false{% endif %}" >