@codecavepro/brand 3.2.2 → 3.2.3

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.
@@ -4,6 +4,7 @@ import { computed } from "vue";
4
4
  const props = withDefaults(defineProps<{
5
5
  isDisabled?: boolean
6
6
  title?: string
7
+ ariaLabel?: string
7
8
  as?: 'link'
8
9
  href?: string
9
10
  variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'text' | 'link' | 'icon'
@@ -64,7 +65,7 @@ const preventDisabledLinkActivation = (event: Event) => {
64
65
  <slot />
65
66
  </a>
66
67
 
67
- <button v-else :type="props.type" :disabled="props.isDisabled" :class="[variantClass, props.class ?? '']">
68
+ <button v-else :type="props.type" :disabled="props.isDisabled" :class="[variantClass, props.class ?? '']" :aria-label="props.ariaLabel">
68
69
  {{ title }}
69
70
  <slot />
70
71
  </button>
@@ -18,19 +18,19 @@ defineProps<{
18
18
  </script>
19
19
 
20
20
  <template>
21
- <div class="space-y-4">
22
- <p class="text-body-secondary uppercase font-bold text-xs">
21
+ <nav :aria-labelledby="`${groupName}-label`" class="space-y-4">
22
+ <p :id="`${groupName}-label`" class="text-body-secondary uppercase font-bold text-xs" >
23
23
  {{ groupName }}
24
24
  </p>
25
- <div class="space-y-3 xl:space-y-2 text-sm">
26
- <div :key="index" v-for="(item, index) in items">
25
+ <ul class="space-y-3 xl:space-y-2 text-sm">
26
+ <li v-for="(item, index) in items" :key="index">
27
27
  <Button
28
28
  :title="item.name"
29
29
  as="link"
30
30
  :href="item.href"
31
31
  variant="text"
32
32
  />
33
- </div>
34
- </div>
35
- </div>
33
+ </li>
34
+ </ul>
35
+ </nav>
36
36
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecavepro/brand",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "CODECAVE design system — colour, typography and layout tokens as CSS custom properties and as a typed module.",
5
5
  "license": "Unlicense",
6
6
  "type": "module",