@sarimarcus/content-sites-tourism 0.29.2 → 0.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.29.4 (2026-10-07)
6
+
7
+ - `./sections`: `WalkStops` keeps a linked stop inside its `<h3>`, so every stop is in the heading outline; `NeighborhoodHubHero`'s pills honour `prefers-reduced-motion` and move focus to the target section (SLA-2984).
8
+
9
+ ## 0.29.3 (2026-10-07)
10
+
11
+ - No changes; lockstep release with ui (SLA-3001).
12
+
5
13
  ## 0.29.2 (2026-10-06)
6
14
 
7
15
  - No changes; lockstep release with ui (SLA-2993).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.29.2",
3
+ "version": "0.29.4",
4
4
  "description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "astro": "^7.0.6",
38
38
  "tailwindcss": "^4.1.18",
39
- "@sarimarcus/content-sites-core": "0.29.2",
40
- "@sarimarcus/content-sites-ui": "0.29.2"
39
+ "@sarimarcus/content-sites-core": "0.29.4",
40
+ "@sarimarcus/content-sites-ui": "0.29.4"
41
41
  }
42
42
  }
@@ -68,15 +68,13 @@ const stopHref = (stop: WalkStop) => (ROUTED.has(stop.type) && stop.slug ? url(`
68
68
  <div class="bg-card rounded-xl border border-border p-5 sm:p-6 hover:border-primary/30 transition-colors">
69
69
  <div class="flex flex-wrap items-start justify-between gap-2 mb-2">
70
70
  <div>
71
- {href ? (
72
- <a href={href} class="text-lg sm:text-xl font-display font-semibold text-foreground hover:text-primary transition-colors">
73
- {stop.name}
74
- </a>
75
- ) : (
76
- <h3 class="text-lg sm:text-xl font-display font-semibold text-foreground">
77
- {stop.name}
78
- </h3>
79
- )}
71
+ <h3 class="text-lg sm:text-xl font-display font-semibold text-foreground">
72
+ {href ? (
73
+ <a href={href} class="hover:text-primary transition-colors">{stop.name}</a>
74
+ ) : (
75
+ stop.name
76
+ )}
77
+ </h3>
80
78
  <div class="flex flex-wrap items-center gap-2 mt-1">
81
79
  <Badge tone="custom" toneClass="bg-muted text-muted-foreground" size="sm" lines={0} class="![font-weight:inherit] !gap-1">
82
80
  {typeLabels[stop.type] || stop.type}
@@ -1,5 +1,6 @@
1
- // NeighborhoodHubHero's controller: in-page category pills scroll smoothly and update the hash without a jump. Each
2
- // nav is wired once (data-hub-category-nav-ready), so a re-run after astro:page-load is a no-op.
1
+ // NeighborhoodHubHero's controller: in-page category pills scroll (smoothly unless reduced motion is asked for), move
2
+ // focus to the section and update the hash without a jump. Each nav is wired once (data-hub-category-nav-ready), so a
3
+ // re-run after astro:page-load is a no-op.
3
4
 
4
5
  function initNav(nav: HTMLElement): void {
5
6
  nav.querySelectorAll<HTMLAnchorElement>('a[href^="#"]').forEach((link) => {
@@ -9,7 +10,10 @@ function initNav(nav: HTMLElement): void {
9
10
  const target = document.getElementById(targetId);
10
11
  if (!target) return;
11
12
  e.preventDefault();
12
- target.scrollIntoView({ behavior: 'smooth', block: 'start' });
13
+ const reduceMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false;
14
+ target.scrollIntoView({ behavior: reduceMotion ? 'auto' : 'smooth', block: 'start' });
15
+ if (!target.hasAttribute('tabindex')) target.setAttribute('tabindex', '-1');
16
+ target.focus({ preventScroll: true });
13
17
  history.pushState(null, '', `#${targetId}`);
14
18
  });
15
19
  });