From b2ee09e5e4a8ab4fe0205f407892df3278d9adce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 22 Jun 2025 17:58:41 +0200 Subject: [PATCH] feat: various a11y improvements --- .../Private/Partials/HeaderSlider.html | 4 +- .../Private/Partials/Product/Teaser.html | 95 +++++++++---------- 2 files changed, 46 insertions(+), 53 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html index 903f4039..f2815133 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html @@ -66,9 +66,9 @@
- {badgeData.title -> f:format.raw()} + {badgeData.title -> f:format.raw()} - {badgeData.subtitle -> f:format.raw()} + {badgeData.subtitle -> f:format.raw()}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html index 1697529d..49b18d99 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html @@ -6,40 +6,32 @@ -
+
-
- - hx-get="{ep:uri.ajax(action: 'concept', controller: 'AjaxTeaserPopup', arguments: '{concept: concept.uid, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}" - hx-target="body" - hx-swap="beforeend" - - > - - - - - - - - - -
+
+ + + + + + + + +
{ep:icon(class: 'product-teaser__flag', icon: 'flag-{country.code -> f:format.case(mode: \'lower\')}')} @@ -76,37 +68,38 @@ - {f:variable(name: 'including', value: '{f:render(section: \'Including\', arguments: \'{_all}\') -> v:format.trim()}')} - - hx-get="{ep:uri.ajax(action: 'concept', controller: 'AjaxTeaserPopup', arguments: '{concept: concept.uid, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}" - hx-target="body" - hx-swap="beforeend" - - class="flex-1 flex flex-col space-y-1 px-2 py-4 md:p-4"> -
- {product.name} -
-
- {region.name} -
+ {f:variable(name: 'including', value: '{f:render(section: \'Including\', arguments: \'{_all}\') -> v:format.trim()}')} +
+ + hx-get="{ep:uri.ajax(action: 'concept', controller: 'AjaxTeaserPopup', arguments: '{concept: concept.uid, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}" + hx-target="body" + hx-swap="beforeend" + + > +
+ {product.name} +
+
+ {region.name} +
+ +
{ep:nightsOptions(options: nights, daytrip: daytrip)}{f:if(condition: including, then: ' inkl.')}
    {including -> f:format.raw()}
-
-
-
- ab {minPrice} € -
-
- p. P.{f:if(condition: '{season} == "w"', then: ' / inkl. Skipass')} -
+
+
+ ab {minPrice} € +
+
+ p. P.{f:if(condition: '{season} == "w"', then: ' / inkl. Skipass')}
- +