From 12964c83efb44610455d3e2d5be3f74c8466fc06 Mon Sep 17 00:00:00 2001 From: IhorMasechko Date: Thu, 19 Jun 2025 16:11:27 +0300 Subject: [PATCH 1/5] Fix filter anchor positioning and improve HTML structure - Update filter anchor to use SCSS header height variables instead of hardcoded values - Add visibility hidden property to filter anchor for better accessibility - Restructure HTML layout by moving filter anchor outside main content area - Improve HTML formatting and code readability --- website/modules/asset/ui/src/scss/_cases.scss | 5 ++-- .../case-studies-page/views/index.html | 23 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/website/modules/asset/ui/src/scss/_cases.scss b/website/modules/asset/ui/src/scss/_cases.scss index 751355da..679951a1 100644 --- a/website/modules/asset/ui/src/scss/_cases.scss +++ b/website/modules/asset/ui/src/scss/_cases.scss @@ -617,10 +617,11 @@ .filter-anchor { position: relative; - top: -64px; + top: -$mobile-header-height; height: 0; + visibility: hidden; @include breakpoint-medium { - top: -95px; + top: -$desktop-header-height; } } diff --git a/website/modules/case-studies-page/views/index.html b/website/modules/case-studies-page/views/index.html index 07c54d02..f0589399 100644 --- a/website/modules/case-studies-page/views/index.html +++ b/website/modules/case-studies-page/views/index.html @@ -1,12 +1,14 @@ {# modules/case-studies-page/views/index.new.html #} {% extends "layout.html" %} {% import '@apostrophecms/pager:macros.html' as pager with context %} {% block main %} -
+
-
- {% area data.page, 'main' %} -
-
+
{% area data.page, 'main' %}
+ +
Filter Case Studies
@@ -162,7 +164,10 @@ {% endif %} {% else %} -
  • +
  • {% if filterType == 'industry' %} {% if tags.length > data.defaultVisibleTagsCount %} -