@worksafevictoria/wcl7.5 1.17.0-beta.12 → 1.17.0-beta.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.17.0-beta.12",
3
+ "version": "1.17.0-beta.13",
4
4
  "description": "WorkSafe Victoria Component Library - GitHub Actions Migration Test",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -8,14 +8,16 @@
8
8
  controls
9
9
  indicators
10
10
  label-indicators="Select a slide to display"
11
+ indicators-button-label="Slide"
11
12
  keyboard
12
13
  :fade="true"
13
14
  background="#ababab"
14
15
  img-width="100%"
15
16
  img-height="auto"
16
- >
17
- <BCarouselSlide
18
- v-for="item in filteredCarouselItems"
17
+ >
18
+ <BCarouselSlide
19
+ v-for="(item, index) in filteredCarouselItems"
20
+ :id="`slide-${index}`"
19
21
  :key="item.id"
20
22
  :img-src="getImageURL(item.imageURL)"
21
23
  :img-alt="item.imageAlt"
@@ -24,7 +26,8 @@
24
26
  <span
25
27
  :class="carousel-caption"
26
28
  :aria-label="item.title ? item.title : 'No caption available'"
27
- :style="item.title === null || item.title === '' ? 'height: 32px;' : null">{{ item.title }}</span>
29
+ :style="item.title === null || item.title === '' ? 'height: 32px;' : null">{{ item.title }}
30
+ </span>
28
31
  </BCarouselSlide>
29
32
  </BCarousel>
30
33
  </div>
@@ -60,6 +63,17 @@ props: {
60
63
  default: false,
61
64
  },
62
65
  },
66
+ mounted() {
67
+ // Remove aria-controls and aria-owns from carousel indicators for accessibility
68
+ const carouselElement = this.$el.querySelector('.carousel-indicators');
69
+ if (carouselElement) {
70
+ const ceChildren = carouselElement.children;
71
+ for (let i = 0; i < ceChildren.length; i++) {
72
+ ceChildren[i].removeAttribute('aria-controls');
73
+ }
74
+ carouselElement.removeAttribute('aria-owns');
75
+ }
76
+ },
63
77
  computed: {
64
78
  filteredCarouselItems() {
65
79