From ed3fc1595644c97cf9accb78a63c23342f75c572 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Wed, 28 Aug 2024 12:41:14 +0200 Subject: [PATCH] A11y: improve html-source with h3.sr-only for uncategorized products --- .../pretixpresale/event/fragment_product_list.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 b6c5f784d..3c4d60212 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -6,12 +6,12 @@ {% load eventsignal %} {% load rich_text %} {% for tup in items_by_category %} -
- {% if tup.0 %} -

{{ tup.0.name }}

- {% if tup.0.description %} -
{{ tup.0.description|localize|rich_text }}
- {% endif %} +
+

+ {% if tup.0 %}{{ tup.0.name }}{% else %}{% trans "Uncategorized items" %}{% endif %} +

+ {% if tup.0.description %} +
{{ tup.0.description|localize|rich_text }}
{% endif %} {% for item in tup.1 %} {% if item.has_variations %}