@xenterprises/nuxt-x-marketing 1.14.0 → 1.15.0

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
@@ -30,6 +30,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
  section and its sample product data were dropped with them. Every other section of the
31
31
  demo page is unchanged.
32
32
 
33
+ ## [1.15.0] - 2026-10-13
34
+
35
+ HTML change, no visual change: screenshots at 1440 and 390 (default and `container="lg"`) are
36
+ pixel-identical to 1.14.0.
37
+
38
+ ### Fixed (accessibility)
39
+
40
+ - **`XMarkBreadcrumb` now exposes a single navigation landmark.** The outer wrapper is a `<div>`
41
+ (same classes, `id` and other attributes still land on it); the only `<nav>` is UBreadcrumb's,
42
+ labelled `aria-label="Breadcrumb"`. 1.14.0 nested `nav "Breadcrumb"` > `nav "breadcrumb"`.
43
+ - **The current crumb has `aria-current="page"`** (last item of `items`, or `current` in the built
44
+ trail). Styling of the current crumb is unchanged.
45
+
33
46
  ## [1.14.0] - 2026-10-13
34
47
 
35
48
  Opt-in; without `container`, XMarkBreadcrumb renders byte-identical to 1.13.0.
@@ -1,15 +1,23 @@
1
1
  <template>
2
- <nav
2
+ <div
3
3
  v-if="container"
4
4
  class="x-mark-breadcrumb"
5
5
  :class="containerClasses"
6
- aria-label="Breadcrumb"
7
6
  >
8
- <UBreadcrumb :items="resolvedItems" />
9
- </nav>
10
- <nav v-else class="x-mark-breadcrumb" aria-label="Breadcrumb">
11
- <UBreadcrumb :items="resolvedItems" />
12
- </nav>
7
+ <UBreadcrumb
8
+ :items="resolvedItems"
9
+ aria-label="Breadcrumb"
10
+ />
11
+ </div>
12
+ <div
13
+ v-else
14
+ class="x-mark-breadcrumb"
15
+ >
16
+ <UBreadcrumb
17
+ :items="resolvedItems"
18
+ aria-label="Breadcrumb"
19
+ />
20
+ </div>
13
21
  </template>
14
22
 
15
23
  <script setup>
@@ -17,6 +25,8 @@
17
25
  * XMarkBreadcrumb — Docs/Academy article breadcrumbs (marketing page standard).
18
26
  * Prefer section + current for the default Home > Docs|Academy > page trail.
19
27
  * Pass items to fully override. Last item is the current page (no link).
28
+ * 1.15.0: one landmark. The wrapper is a plain div; UBreadcrumb renders the only
29
+ * <nav aria-label="Breadcrumb">, and the current crumb gets aria-current="page".
20
30
  */
21
31
  const props = defineProps({
22
32
  /** Full trail [{ label, to? }]. When set, overrides section/current builders. */
@@ -90,6 +100,7 @@ const resolvedItems = computed(() => {
90
100
  return {
91
101
  label: item.label,
92
102
  ...(isLast || !item.to ? {} : { to: item.to }),
103
+ ...(isLast ? { active: true } : {}),
93
104
  };
94
105
  });
95
106
  }
@@ -102,7 +113,7 @@ const resolvedItems = computed(() => {
102
113
  return [
103
114
  { label: props.homeLabel, to: props.homeTo },
104
115
  { label: sectionLabel, to: sectionTo },
105
- { label: current },
116
+ { label: current, active: true },
106
117
  ];
107
118
  });
108
119
  </script>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@xenterprises/nuxt-x-marketing",
3
3
  "license": "SEE LICENSE IN LICENSE",
4
4
  "type": "module",
5
- "version": "1.14.0",
5
+ "version": "1.15.0",
6
6
  "main": "./nuxt.config.ts",
7
7
  "scripts": {
8
8
  "dev": "nuxi dev .playground",