From f8a562ed7c7a756d245e9b84cedc755fc0790dac Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 19 May 2025 11:50:19 +0200 Subject: [PATCH] [A11y] fix waitinglist-link not being recognizable as a link --- .../pretixpresale/event/fragment_availability.html | 10 ++++++---- .../pretixpresale/event/fragment_product_list.html | 5 +++-- src/pretix/static/pretixpresale/scss/_event.scss | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html b/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html index 176d155dc..ad2221067 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_availability.html @@ -1,4 +1,5 @@ {% load i18n %} +{% load icon %} {% load eventurl %} {% if item.current_unavailability_reason == 'require_voucher' %} @@ -20,14 +21,15 @@ {% elif avail <= 10 %}
{% if price or original_price %} - {% trans "SOLD OUT" %} + {% icon "ban" %} {% trans "SOLD OUT" %} {% else %} - {% trans "FULLY BOOKED" %} + {% icon "ban" %} {% trans "FULLY BOOKED" %} {% endif %} + {% if allow_waitinglist and item.allow_waitinglist %}
- - + + {% icon "plus-circle" %} {% trans "Waiting list" %} {% endif %} diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html index 17cbab4e7..45ed8a55c 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -1,4 +1,5 @@ {% load i18n %} +{% load icon %} {% load l10n %} {% load eventurl %} {% load money %} @@ -82,9 +83,9 @@ {% if not event.settings.show_variations_expanded %} {% if item.best_variation_availability <= 10 %} {% if not item.min_price %} - {% trans "FULLY BOOKED" %} + {% icon "ban" %} {% trans "FULLY BOOKED" %} {% else %} - {% trans "SOLD OUT" %} + {% icon "ban" %} {% trans "SOLD OUT" %} {% endif %} {% if allow_waitinglist and item.allow_waitinglist %}
diff --git a/src/pretix/static/pretixpresale/scss/_event.scss b/src/pretix/static/pretixpresale/scss/_event.scss index cf94f0de8..4fe7404b3 100644 --- a/src/pretix/static/pretixpresale/scss/_event.scss +++ b/src/pretix/static/pretixpresale/scss/_event.scss @@ -23,7 +23,7 @@ text-align: center; &.gone, .gone { - color: $alert-danger-text; + color: $brand-danger; } &.unavailable, .unavailable { color: $alert-warning-text;