@worksafevictoria/wcl7.5 1.13.0 → 1.14.0-beta.10

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/assets/icons/Mental-injury.svg +40 -0
  3. package/src/assets/icons/Physical-injury.svg +11 -0
  4. package/src/assets/icons/icon-view-off.svg +1 -0
  5. package/src/assets/icons/other.svg +19 -0
  6. package/src/components/Containers/Carousel/index.vue +45 -28
  7. package/src/components/Containers/HomepageHeader/index.vue +2 -11
  8. package/src/components/Containers/HomepageHeaderNew/index.stories.js +5 -0
  9. package/src/components/Containers/HomepageHeaderNew/index.vue +40 -11
  10. package/src/components/Containers/SectionGroup/index.vue +23 -23
  11. package/src/components/Global/AppHeaderNew/index.vue +31 -24
  12. package/src/components/Global/AppHeaderNew/mobile.scss +50 -12
  13. package/src/components/Global/AppHeaderNew/styles.scss +26 -33
  14. package/src/components/Paragraphs/Accordion/index.stories.js +3 -3
  15. package/src/components/Paragraphs/Accordion/index.vue +3 -3
  16. package/src/components/Paragraphs/BrowseContent/index.vue +226 -231
  17. package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.stories.js +7 -7
  18. package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +21 -23
  19. package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +41 -40
  20. package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +11 -0
  21. package/src/components/Paragraphs/RTWPlanner/Home/index.vue +83 -0
  22. package/src/components/Paragraphs/RTWPlanner/NavBar/index.vue +44 -0
  23. package/src/components/Paragraphs/RTWPlanner/Planners/PlanTasks.vue +169 -0
  24. package/src/components/Paragraphs/RTWPlanner/Planners/index.vue +239 -0
  25. package/src/components/Paragraphs/RTWPlanner/icons/ChevRightIcon.vue +16 -0
  26. package/src/components/Paragraphs/RTWPlanner/icons/DeleteIcon.vue +13 -0
  27. package/src/components/Paragraphs/RTWPlanner/icons/MentalInjury.vue +42 -0
  28. package/src/components/Paragraphs/RTWPlanner/icons/NotepadIcon.vue +95 -0
  29. package/src/components/Paragraphs/RTWPlanner/icons/OtherInjury.vue +20 -0
  30. package/src/components/Paragraphs/RTWPlanner/icons/PhysicalInjury.vue +13 -0
  31. package/src/components/Paragraphs/RTWPlanner/icons/PlusCircleIcon.vue +36 -0
  32. package/src/components/Paragraphs/RTWPlanner/icons/TickCircleIcon.vue +13 -0
  33. package/src/components/Paragraphs/RTWPlanner/index.stories.js +26 -0
  34. package/src/components/Paragraphs/RTWPlanner/index.vue +41 -0
  35. package/src/components/Paragraphs/TextMedia/index.vue +107 -9
  36. package/src/components/Paragraphs/VideoPlayer/index.vue +157 -23
  37. package/src/components/SubComponents/VideoThumbnail/index.vue +5 -1
  38. package/src/includes/scss/mixins/src/fp.scss +1 -1
  39. package/src/index.js +3 -13
  40. package/src/mock/asbestos-removalists.js +224 -196
  41. package/src/components/Paragraphs/BrowseContent/setup.vue +0 -284
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.13.0",
3
+ "version": "1.14.0-beta.10",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,40 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="800px"
4
+ height="800px"
5
+ viewBox="0 0 48 48"
6
+ fill="none"
7
+ >
8
+ <path
9
+ fill-rule="evenodd"
10
+ clip-rule="evenodd"
11
+ d="M37.2847 25.6154L37.1193 25.2621C36.4062 23.7381 36.1988 22.1238 36.1366 20.6919C36.1052 19.9703 36.11 19.257 36.1176 18.6014C36.1187 18.5113 36.1198 18.4225 36.1209 18.335C36.1279 17.7692 36.1342 17.2553 36.123 16.7604C36.0756 14.8106 35.4636 12.9118 34.355 11.2858C33.0921 9.71615 31.4415 8.48173 29.5544 7.70176L29.5216 7.6882L29.4893 7.67348C26.935 6.50995 24.1507 5.908 21.3318 5.91114L21.3296 5.91115C17.7824 5.91115 14.3879 7.29451 11.8909 9.74531C9.39511 12.1949 8 15.5091 8 18.9569C8 21.0012 8.59295 23.3328 9.62467 25.4904C10.6588 27.653 12.0607 29.4888 13.5372 30.6266L14.3164 31.2271V40.1425C14.6413 40.5448 15.2724 41.0416 16.219 41.4724C17.3773 41.9997 18.5419 42.2133 19.2158 42.1583L19.2971 42.1516H19.3786C21.3349 42.1516 22.2503 41.5988 22.6443 41.2626C22.7871 41.1407 22.8864 41.026 22.953 40.9356V35.4002L25.4499 36.0456L25.4511 36.0459L25.4521 36.0462L25.4534 36.0465L25.4656 36.0495C25.4811 36.0533 25.5077 36.0597 25.5448 36.0683C25.619 36.0855 25.7345 36.1111 25.8852 36.1414C26.1875 36.202 26.6274 36.2802 27.1577 36.3457C28.2343 36.4785 29.6077 36.5491 30.9339 36.3545C32.2715 36.1584 33.3862 35.7193 34.1529 34.9857C34.8668 34.3024 35.4954 33.1581 35.4954 31.0618V29.352L37.1767 29.0874L37.1781 29.0872L37.1862 29.0858C37.1922 29.0847 37.2007 29.0832 37.2118 29.0811C37.2228 29.0791 37.2362 29.0765 37.2518 29.0735C37.315 29.061 37.413 29.0403 37.5345 29.0101C37.7834 28.9483 38.1014 28.854 38.4114 28.7232C38.7332 28.5875 38.9648 28.4464 39.1013 28.3262C39.1288 28.3019 39.1481 28.2825 39.1614 28.268C39.1565 28.2144 39.1378 28.1044 39.068 27.9264C38.9588 27.6481 38.7721 27.3265 38.5331 26.9938C38.2994 26.6687 38.0509 26.3816 37.8573 26.1735C37.762 26.071 37.6837 25.9916 37.632 25.9404C37.6189 25.9274 37.6075 25.9163 37.5982 25.9072C37.5892 25.8984 37.582 25.8915 37.5767 25.8865L37.5685 25.8786L37.5674 25.8777L37.2847 25.6154ZM24.953 37.9829C24.953 37.9829 25.7548 38.1901 26.953 38.3355C30.4936 38.7652 37.4954 38.655 37.4954 31.0618C37.4954 31.0618 40.7982 30.5421 41.1327 28.6545C41.4671 26.767 38.9308 24.4144 38.9308 24.4144C38.0683 22.5713 38.0953 20.4009 38.1207 18.3634C38.1277 17.8001 38.1346 17.2469 38.1225 16.7137C38.0654 14.3491 37.3155 12.0508 35.9624 10.0936C34.4807 8.23043 32.5377 6.77069 30.3183 5.85341C27.5022 4.57059 24.4343 3.90769 21.3296 3.91115C17.2639 3.91115 13.3648 5.49632 10.4899 8.31794C7.61508 11.1396 6 14.9665 6 18.9569C6 23.7578 8.74879 29.4615 12.3164 32.2108V40.7048C13.3287 42.828 17.1475 44.3338 19.3786 44.1516C24.1168 44.1516 24.953 41.416 24.953 41.416V37.9829Z"
12
+ fill="#333333"
13
+ />
14
+ <path
15
+ d="M26.7229 20.1457C27.4959 20.1457 27.2508 19.9188 27.8892 19.4947C28.5374 19.918 29.3023 20.1399 30.0828 20.1311L32.5622 19.2531C33.2609 18.6926 33.7405 17.9155 33.9208 17.0521C34.1012 16.1886 33.9713 15.291 33.5529 14.5096C33.1345 13.7281 32.4529 13.1103 31.6224 12.7594C31.4328 11.9234 30.9551 11.1756 30.2686 10.6402L27.8484 9.81597H27.5759C27.0375 9.05158 26.2294 8.50633 25.3049 8.28388L21.116 8C20.2535 8.06974 19.4402 8.41984 18.807 8.99394C18.5078 8.92529 18.2016 8.88971 17.8941 8.88787C17.1498 8.88936 16.4218 9.10047 15.7981 9.49572C15.1743 9.89097 14.6815 10.4535 14.379 11.1153L12.4074 12.4744C11.9169 13.1213 11.6528 13.9044 11.6541 14.7084C11.6492 15.0445 11.6951 15.3796 11.7903 15.7028C11.273 16.3559 10.9949 17.1586 11.0001 17.9832C10.9988 18.9396 11.3743 19.8601 12.0492 20.5554C12.1036 21.2401 12.3495 21.8973 12.7601 22.4558C13.1708 23.0143 13.7306 23.4529 14.379 23.7242C15.1261 24.1799 15.7587 24.7929 16.2302 25.518C16.7018 26.243 16.8964 27.0617 17 27.9138H21.116V23.9363C21.1151 23.2301 21.3176 22.5377 21.7005 21.9378C22.0834 21.3378 22.2979 20.8543 22.9489 20.5421C23.5588 20.315 24.1084 19.9569 24.5566 19.4947C25.195 19.9188 25.95 20.1457 26.7229 20.1457Z"
16
+ fill="#333333"
17
+ />
18
+ <path
19
+ d="M34 23.5C34 24.3284 33.3284 25 32.5 25C31.6716 25 31 24.3284 31 23.5C31 22.6716 31.6716 22 32.5 22C33.3284 22 34 22.6716 34 23.5Z"
20
+ fill="#333333"
21
+ />
22
+ <path
23
+ fill-rule="evenodd"
24
+ clip-rule="evenodd"
25
+ d="M21 32H17V30H21V32Z"
26
+ fill="#333333"
27
+ />
28
+ <path
29
+ fill-rule="evenodd"
30
+ clip-rule="evenodd"
31
+ d="M21 36H17V34H21V36Z"
32
+ fill="#333333"
33
+ />
34
+ <path
35
+ fill-rule="evenodd"
36
+ clip-rule="evenodd"
37
+ d="M21 40H17V38H21V40Z"
38
+ fill="#333333"
39
+ />
40
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ fill="#000000"
4
+ width="800px"
5
+ height="800px"
6
+ viewBox="-32 0 512 512"
7
+ >
8
+ <path
9
+ d="M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"
10
+ />
11
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="140.743" height="128.766" viewBox="0 0 140.743 128.766"><g transform="translate(0 0)"><path d="M5.986,128.766A5.986,5.986,0,0,1,.45,120.507a.323.323,0,0,1,.083-.056.35.35,0,0,0,.073-.046L117.334,3.677a4.454,4.454,0,0,0,1.036-1.742l.107-.108a5.986,5.986,0,1,1,8.465,8.465L103,34.206a125.465,125.465,0,0,1,25.74,21.55,12.981,12.981,0,0,1,.042,17.348A125.8,125.8,0,0,1,115.556,85.64a118.682,118.682,0,0,1-16.05,11.144,90.43,90.43,0,0,1-17.951,7.984,63.583,63.583,0,0,1-18.927,3.054h-1.8a67.061,67.061,0,0,1-25.8-5.62L10.213,127.02A5.951,5.951,0,0,1,5.986,128.766Zm78.962-75.9a1.515,1.515,0,0,0-1.076.452L50.589,86.6A1.514,1.514,0,0,0,51,89.032,25.738,25.738,0,0,0,69.553,90.17,27.416,27.416,0,0,0,87.511,72.044a25.711,25.711,0,0,0-1.2-18.323,1.51,1.51,0,0,0-1.36-.854Z" transform="translate(8.661 0)" fill="#fff"/><path d="M44.106,51.784a1.461,1.461,0,0,0,.365-1.437A25.83,25.83,0,0,1,43.417,43.4,26.937,26.937,0,0,1,70.355,16.467,25.6,25.6,0,0,1,77.3,17.5a1.461,1.461,0,0,0,1.437-.371L90.354,5.506a1.52,1.52,0,0,0-.6-2.52A62.333,62.333,0,0,0,70.355,0C44.615-.342,18.874,17.664,3.388,34.718a12.87,12.87,0,0,0-.042,17.36,126.959,126.959,0,0,0,20.58,18.138,1.532,1.532,0,0,0,1.951-.174Z" transform="translate(0 21.038)" fill="#fff"/></g></svg>
@@ -0,0 +1,19 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ viewBox="0 0 256 256"
4
+ fill="currentColor"
5
+ role="img"
6
+ aria-label="Icon"
7
+ focusable="false"
8
+ >
9
+ <g>
10
+ <circle cx="128" cy="22.4" r="21.1"/>
11
+ <path d="M223,51.5c-3.6-3.6-9.5-3.6-13.1,0l-23.3,23.3c0,0-18.1-18.2-18.3-18.3c-5.2-5.2-11.9-7.7-18.7-7.7H128h0h-21.6
12
+ c-6.8,0-13.5,2.6-18.7,7.7c-0.2,0.2-18.3,18.3-18.3,18.3L46.1,51.5c-3.6-3.6-9.5-3.6-13.1,0c-3.6,3.6-3.6,9.5,0,13.1l29.9,29.9
13
+ c3.6,3.6,9.5,3.6,13.1,0l18.4-18.5c0.5-0.5,1.1-0.8,1.9-0.8c1.5,0,2.6,1.2,2.6,2.6v23.8v44.9v95.1c0,0.5,0,0.9,0.1,1.4
14
+ c0.3,3.1,1.7,5.9,3.8,8c2.4,2.4,5.7,3.9,9.3,3.9c3.6,0,6.9-1.5,9.3-3.9c2.1-2.1,3.5-4.9,3.8-8c0-0.4,0.1-0.9,0.1-1.4v-92.4
15
+ c0-1.5,1.2-2.6,2.6-2.6s2.6,1.2,2.6,2.6v92.4c0,0.5,0,0.9,0.1,1.4c0.3,3.1,1.7,5.9,3.8,8c2.4,2.4,5.7,3.9,9.3,3.9s6.9-1.5,9.3-3.9
16
+ c2.1-2.1,3.5-4.9,3.8-8c0-0.4,0.1-0.9,0.1-1.4v-95.1h0V77.8c0-1.5,1.2-2.6,2.6-2.6c0.7,0,1.4,0.3,1.9,0.8L180,94.4
17
+ c3.6,3.6,9.5,3.6,13.1,0L223,64.5C226.6,60.9,226.6,55.1,223,51.5z"/>
18
+ </g>
19
+ </svg>
@@ -1,26 +1,32 @@
1
1
  <template>
2
2
  <div>
3
- <b-carousel
3
+ <BCarousel
4
4
  id="carousel-1"
5
5
  :class="{carouselPara: isParagraph}"
6
6
  v-model="slide"
7
7
  interval="0"
8
8
  controls
9
9
  indicators
10
+ label-indicators="Select a slide to display"
10
11
  keyboard
11
12
  :fade="true"
12
13
  background="#ababab"
14
+ img-width="100%"
15
+ img-height="auto"
13
16
  >
14
- <b-carousel-slide
17
+ <BCarouselSlide
15
18
  v-for="item in filteredCarouselItems"
16
19
  :key="item.id"
17
20
  :img-src="getImageURL(item.imageURL)"
18
21
  :img-alt="item.imageAlt"
19
22
  @click.prevent="handleClick(item.linkURL)"
20
23
  >
21
- <h4>{{ item.title }}</h4>
22
- </b-carousel-slide>
23
- </b-carousel>
24
+ <span
25
+ :class="carousel-caption"
26
+ :aria-label="item.title ? item.title : 'No caption available'"
27
+ :style="item.title === null || item.title === '' ? 'height: 32px;' : null">{{ item.title }}</span>
28
+ </BCarouselSlide>
29
+ </BCarousel>
24
30
  </div>
25
31
  </template>
26
32
 
@@ -113,29 +119,30 @@ methods: {
113
119
  <style>
114
120
  .carousel {
115
121
  position: relative;
116
- padding-bottom: 7rem;
117
- max-width: 540px;
122
+ margin-bottom: 10px;
118
123
  }
119
124
 
120
125
  .carousel-inner {
121
- overflow: visible;
126
+ border-radius: 8px ;
127
+ }
128
+ /* Introduced changes to make image responsive */
129
+ .carousel img {
130
+ object-fit: cover;
131
+ max-height: 392px;
132
+ height: auto;
133
+ width: 100%;
122
134
  }
123
135
 
124
136
  .carousel-indicators {
125
- padding-bottom: 3rem;
126
- float: right;
127
- right: 2% !important;
128
- width: 20%;
129
- justify-content: end;
130
- margin-left: 80%;
131
- margin-right: 0;
137
+ justify-content: end !important;
138
+ margin-right: 10px !important;
132
139
  }
133
140
 
134
141
  .carousel-indicators button {
135
142
  width: 10px !important;
136
143
  height: 10px !important;
137
144
  border-radius: 50% !important;
138
- background-color: black !important;
145
+ background-color: yellow !important;
139
146
  }
140
147
 
141
148
  .carousel-indicators button:focus,
@@ -145,17 +152,24 @@ methods: {
145
152
  }
146
153
 
147
154
  .carousel-caption {
148
- color: black;
149
- top: 100%;
150
- left: 0;
151
- right: 20%;
152
- text-align: left;
153
- text-decoration: underline;
155
+ display: flex;
156
+ font-size: 24px;
157
+ font-weight: normal;
158
+ flex-direction: column;
159
+ align-items: flex-start;
160
+ text-align: left !important;
161
+ width: 100%;
162
+ color: white;
163
+ background-color: black;
164
+ left: 0 !important;
165
+ right: 0 !important;
166
+ bottom: 0 !important;
167
+ padding: 1rem !important;
154
168
  }
155
169
 
156
170
  .carousel-control-next,
157
171
  .carousel-control-prev {
158
- bottom: 7rem;
172
+ bottom: 4rem;
159
173
  }
160
174
 
161
175
  .carousel-control-prev:focus,
@@ -168,16 +182,19 @@ methods: {
168
182
 
169
183
  .carousel-control-prev-icon,
170
184
  .carousel-control-next-icon {
171
- height: 50px !important;
172
- width: 50px !important;
173
- outline:none !important;
185
+ height: 60px !important;
186
+ width: 60px !important;
187
+ }
188
+
189
+ .carousel-item {
190
+ position: relative;
174
191
  }
175
192
 
176
193
  .carouselPara {
177
194
  margin-left: auto;
178
195
  margin-right: auto;
179
- width: 75%;
180
- height: auto;
196
+ height: 50%;
197
+ width:50%;
181
198
  }
182
199
 
183
200
  </style>
@@ -38,16 +38,7 @@
38
38
  :stretch="true"
39
39
  >{{ link.text }}</cta-button
40
40
  >
41
- <cta-button
42
- class="iebtn"
43
- url="/choose-your-language"
44
- type="dark"
45
- :stretch="true"
46
- :glyph="earthIcon"
47
- :is-centred="false"
48
- >Choose your language</cta-button
49
- >
50
- </div>
41
+ </div>
51
42
  </template>
52
43
  </hero-header>
53
44
  </template>
@@ -86,7 +77,7 @@ export default {
86
77
 
87
78
  .homepage-header {
88
79
  border-bottom: none !important;
89
-
80
+
90
81
  :deep(.wysiwyg) {
91
82
  h1 {
92
83
  @media screen and (max-width: 390px) {
@@ -1,6 +1,7 @@
1
1
  import HomepageHeader from './index.vue'
2
2
  import { mockCarouselItems } from '../../../mock/carousel-items'
3
3
 
4
+ // Introduced an additional headerLink
4
5
 
5
6
  const headerLinks = [
6
7
  {
@@ -22,6 +23,10 @@ const headerLinks = [
22
23
  {
23
24
  text: 'Pay or renew your insurance',
24
25
  path: '/pay-or-renew-your-workcover-insurance-premium'
26
+ },
27
+ {
28
+ text: 'Contact Worksafe',
29
+ path: '/contact-worksafe'
25
30
  }
26
31
  ]
27
32
 
@@ -13,11 +13,10 @@
13
13
 
14
14
  <div class="homepage-header__content-wrapper">
15
15
  <container class="homepage-header__content-wrapper__content">
16
- <row>
16
+ <row id="header-row">
17
+ <!-- changes made to bootstrap grid breakpoints -->
17
18
  <column
18
- class="homepage-header__content-wrapper__content-col col-12 col-md-7 homepage-header__content-wrapper__content-col--split wcl-rich-text--ltr"
19
- :xs="7"
20
- :md="7"
19
+ class="homepage-header__content-wrapper__content-col col-12 col-md-7 col-lg-8 homepage-header__content-wrapper__content-col--split wcl-rich-text--ltr"
21
20
  >
22
21
  <carousel-component
23
22
  :carousel-items="slideList"
@@ -25,10 +24,9 @@
25
24
  :is-paragraph="false"
26
25
  />
27
26
  </column>
28
- <column
29
- md="4"
30
- :offset-md="1"
31
- class="homepage-header__side col-md-4 offset-md-1"
27
+ <column
28
+ id="header-links"
29
+ class="homepage-header__side col-12 col-md-5 col-lg-4"
32
30
  >
33
31
  <div>
34
32
  <cta-button
@@ -36,8 +34,9 @@
36
34
  :key="i"
37
35
  class="iebtn"
38
36
  :url="link.path"
39
- type="dark"
40
37
  :stretch="true"
38
+ type="dark"
39
+
41
40
  >{{ link.text }}</cta-button
42
41
  >
43
42
  </div>
@@ -86,7 +85,35 @@ export default {
86
85
 
87
86
  data: () => ({
88
87
  earthIcon,
89
- })
88
+ }),
89
+ mounted() {
90
+ window.addEventListener('resize', this.setCarouselHeight)
91
+ this.setCarouselHeight()
92
+ },
93
+ beforeDestroy() {
94
+ window.removeEventListener('resize', this.setCarouselHeight)
95
+ },
96
+ methods: {
97
+ setCarouselHeight() {
98
+ this.$nextTick(() => {
99
+ const sideMenu = this.$el.querySelector('.homepage-header__side')
100
+ const carousel = this.$el.querySelector('.carousel')
101
+ const carouselItem = this.$el.querySelector('.carousel-item')
102
+
103
+ if (sideMenu && carousel && window.innerWidth >= 450 ) {
104
+ const menuHeight = sideMenu.offsetHeight
105
+ const newHeight = menuHeight - 16 // 16px padding adjustment
106
+ carousel.style.height = `${newHeight}px`
107
+ if (carouselItem) {
108
+ carouselItem.style.height = `${newHeight}px`
109
+ }
110
+ } else if (carousel) {
111
+ carousel.removeAttribute('style') // Reset to default styles
112
+ carouselItem.removeAttribute('style') // Reset to default styles
113
+ }
114
+ })
115
+ },
116
+ }
90
117
  }
91
118
  </script>
92
119
 
@@ -102,6 +129,8 @@ export default {
102
129
  border-bottom: none !important;
103
130
  height: auto;
104
131
  align-items: normal;
132
+ padding-top: 30px;
133
+ padding-bottom: 30px;
105
134
 
106
135
  :deep(.wysiwyg) {
107
136
  h1 {
@@ -174,7 +203,6 @@ export default {
174
203
  }
175
204
 
176
205
  &__search {
177
- margin-top: 10px;
178
206
  z-index: 1;
179
207
  width: auto;
180
208
  position: relative;
@@ -220,4 +248,5 @@ export default {
220
248
  }
221
249
  }
222
250
  }
251
+
223
252
  </style>
@@ -50,7 +50,7 @@
50
50
  <slot name="preContent"></slot>
51
51
  </column>
52
52
  </row>
53
-
53
+
54
54
  <div
55
55
  class="section-group__content section-group__row"
56
56
  :class="{
@@ -61,7 +61,7 @@
61
61
  subHeading ||
62
62
  $slots.headerRight
63
63
  ),
64
- [`${contentClass}`]: hasContentClass
64
+ [`${contentClass}`]: hasContentClass,
65
65
  }"
66
66
  :style="applyBackgroundOn === 'content' ? backgroundStyle : null"
67
67
  >
@@ -99,7 +99,7 @@ export default {
99
99
  type: String,
100
100
  default: 'page',
101
101
  validator: (value) =>
102
- ['half-content', 'content', 'page', 'full'].indexOf(value) >= 0
102
+ ['half-content', 'content', 'page', 'full'].indexOf(value) >= 0,
103
103
  },
104
104
  backgroundVariant: {
105
105
  type: String,
@@ -113,48 +113,48 @@ export default {
113
113
  'yellow',
114
114
  'white',
115
115
  'lightblue',
116
- 'lightred'
117
- ].indexOf(value) >= 0
116
+ 'lightred',
117
+ ].indexOf(value) >= 0,
118
118
  },
119
119
  applyBackgroundOn: {
120
120
  type: String,
121
121
  default: 'section',
122
122
  validator: (value) =>
123
- ['content', 'block', 'container', 'section'].indexOf(value) >= 0
123
+ ['content', 'block', 'container', 'section'].indexOf(value) >= 0,
124
124
  },
125
125
  backgroundImage: {
126
126
  type: String,
127
- default: ''
127
+ default: '',
128
128
  },
129
129
  noPaddingTop: {
130
- type: Boolean
130
+ type: Boolean,
131
131
  },
132
132
  noPaddingBottom: {
133
- type: Boolean
133
+ type: Boolean,
134
134
  },
135
135
  bordered: {
136
- type: Boolean
136
+ type: Boolean,
137
137
  },
138
138
  rtl: {
139
139
  type: Boolean,
140
- default: false
140
+ default: false,
141
141
  },
142
142
  title: {
143
143
  type: String,
144
- default: null
144
+ default: null,
145
145
  },
146
146
  subHeading: {
147
147
  type: String,
148
- default: null
148
+ default: null,
149
149
  },
150
150
  titleTag: {
151
151
  type: String,
152
- default: 'h2'
152
+ default: 'h2',
153
153
  },
154
154
  contentClass: {
155
155
  type: String,
156
- default: ''
157
- }
156
+ default: '',
157
+ },
158
158
  },
159
159
  computed: {
160
160
  generatedClass() {
@@ -162,7 +162,7 @@ export default {
162
162
  rtl: this.rtl,
163
163
  [`section-group--noPaddingTop`]: this.noPaddingTop,
164
164
  [`section-group--noPaddingBottom`]: this.noPaddingBottom,
165
- [`section-group--size-` + this.size]: !!this.size
165
+ [`section-group--size-` + this.size]: !!this.size,
166
166
  }
167
167
  },
168
168
  backgroundStyle() {
@@ -175,7 +175,7 @@ export default {
175
175
  [`background-size`]: `cover`,
176
176
  [`background-position`]: `center center`,
177
177
  color: '#ffffff',
178
- ['border-radius']: borderRadius
178
+ ['border-radius']: borderRadius,
179
179
  }
180
180
  }
181
181
  if (this.backgroundVariant) {
@@ -206,14 +206,14 @@ export default {
206
206
  styles = {
207
207
  ...(styles || {}),
208
208
  [`background-color`]: bgColour,
209
- ['border-radius']: borderRadius
209
+ ['border-radius']: borderRadius,
210
210
  }
211
211
  }
212
212
 
213
213
  if (this.bordered) {
214
214
  styles = {
215
215
  ...(styles || {}),
216
- [`border`]: `1px solid ` + colors.gray
216
+ [`border`]: `1px solid ` + colors.gray,
217
217
  }
218
218
  }
219
219
 
@@ -221,7 +221,7 @@ export default {
221
221
  },
222
222
  hasContentClass() {
223
223
  return this.contentClass.length > 0
224
- }
224
+ },
225
225
  },
226
226
  mounted() {
227
227
  window.addEventListener('resize', this.setColumnSize)
@@ -241,8 +241,8 @@ export default {
241
241
  this.$emit('isDesktopView', !isTabletView && !isMobileView)
242
242
  this.$emit('isMobileOrTabletView', isMobileView || isTabletView)
243
243
  })
244
- }
245
- }
244
+ },
245
+ },
246
246
  }
247
247
  </script>
248
248
 
@@ -5,7 +5,7 @@
5
5
  :class="'app-header' + (screen === 'mobile' ? ' ' + 'isMobile' : '')"
6
6
  >
7
7
  <!-- Top menu -->
8
- <div class="logo">
8
+ <div :class="screen === 'mobile' ? 'logoMobile' : 'logo'">
9
9
  <!-- Mobile Menu -->
10
10
  <div v-if="screen === 'mobile'" class="app-header__mobile-menu-container">
11
11
  <a class="dark" role="button" @click.prevent="showMobileMenu">
@@ -15,7 +15,7 @@
15
15
  <!-- Logo -->
16
16
  <nuxt-link class="dark" to="/">
17
17
  <img
18
- :class="screen === 'mobile' ? 'LogoImgMobile' : 'LogoImg'"
18
+ :class="screen === 'mobile' ? 'logoImgMobile' : 'logoImg'"
19
19
  :alt="
20
20
  isWorkWell
21
21
  ? 'Work Well Victoria - Logo'
@@ -26,36 +26,38 @@
26
26
  </nuxt-link>
27
27
  <span :class="screen === 'mobile' ? 'logo__nav_mobile' : 'logo__nav'">
28
28
  <!-- Roles added for accessibility -->
29
- <table role="presentation" >
29
+ <table role="presentation" style="margin-right: 0;">
30
30
  <tbody role="presentation">
31
31
  <tr role="presentation">
32
- <td :class="screen === 'mobile' ? 'td_mobile' : ''">
32
+ <td :class="screen === 'mobile' ? 'td_mobile mobile-link' : ''">
33
33
  <!-- Language link -->
34
+
34
35
  <nuxt-link
35
- :class="screen === 'mobile' ? 'mobile-link' : ''"
36
36
  to="/languages"
37
37
  @click.native="fireAnalytics('Choose your language', '/languages')"
38
38
  title="Language"
39
39
  >
40
40
  <span v-if="screen !== 'mobile'">Choose your language </span>
41
- <img alt="Language Icon" width="15px" height="15px" :src=LanguageIcon />
41
+ <img :class="screen === 'mobile' ? 'imgMobile' : ''" alt="Language Icon" width="15px" height="15px" :src=LanguageIcon />
42
42
  </nuxt-link>
43
+
43
44
  </td>
44
- <td :class="screen === 'mobile' ? 'td_mobile' : ''">
45
+ <td :class="screen === 'mobile' ? 'td_mobile mobile-link' : ''">
45
46
  <!-- Contrast link -->
46
- <a href="javascript:void(0)" :class="screen === 'mobile' ? 'mobile-link' : ''" @click="show = !show" @keyup.esc="show = !show" title="Contrast" ref="selectContrast">
47
- <span v-if="screen !== 'mobile'">Adjust contrast</span> <img alt="Contrast Icon" width="15px" height="15px" :src=ContrastIcon />
47
+ <a href="javascript:void(0)" @click="show = !show" @keyup.esc="show = !show" title="Contrast" ref="selectContrast">
48
+ <span v-if="screen !== 'mobile'">Adjust contrast</span> <img :class="screen === 'mobile' ? 'imgMobile' : ''" alt="Contrast Icon" width="15px" height="15px" :src=ContrastIcon />
48
49
  </a>
49
50
  <div
50
51
  ref="contrastChoices"
51
- class="flex-container"
52
+ :class="screen === 'mobile' ? 'flex-container_contrast_mobile' : 'flex-container_contrast'"
52
53
  v-if="show"
53
54
  >
54
- <div class="flex-item contrast_slide--box-list">
55
- <div v-for="list in lists" :key="list.value">
56
- <label :class="{'last-radio': list.label==='Greyscale'}">
55
+ <div class="flex-item_contrast contrast_slide--box-list">
56
+ <div v-for="list in lists" :key="list.value" >
57
+ <label :for="list.id" :class="{'last-radio': list.label==='Greyscale'}">
57
58
  <input
58
59
  type="radio"
60
+ :id="list.id"
59
61
  :name="list.name"
60
62
  :value="list.value"
61
63
  :checked="list.value === selectedValue"
@@ -74,7 +76,7 @@
74
76
  class="cta-button cta-button--text-only cta-button--slim"
75
77
  to="/search"
76
78
  title="Search"
77
- ><span v-if="screen !== 'mobile'">Search &nbsp;</span> <img alt="Search Icon" width="15px" height="15px" :src=NavSearchIcon />
79
+ ><span v-if="screen !== 'mobile'">Search &nbsp;</span><img alt="Search Icon" style="margin-top: 2px;" width="15px" height="15px" :src=NavSearchIcon />
78
80
  </nuxt-link>
79
81
  </td>
80
82
  <td :class="screen === 'mobile' ? 'td_mobile-last' : ''">
@@ -411,18 +413,25 @@ export default {
411
413
  NavSearchIcon,
412
414
  lists: [
413
415
  {
416
+ id: 'contrast1',
414
417
  name: 'contrast',
415
418
  value: 'default',
416
- label: 'Light contrast (default)'
419
+ label: 'Light contrast (default)',
420
+ labelmobile: 'Light'
417
421
  },
418
422
  {
423
+ id: 'contrast2',
419
424
  name: 'contrast',
420
425
  value: 'high_contrast',
421
- label: 'Increased contrast'
426
+ label: 'Increased contrast',
427
+ labelmobile: 'Increased'
422
428
  },
423
- { name: 'contrast',
424
- value: 'grayscale',
425
- label: 'Greyscale'
429
+ {
430
+ id: 'contrast3',
431
+ name: 'contrast',
432
+ value: 'grayscale',
433
+ label: 'Greyscale',
434
+ labelmobile: 'Greyscale'
426
435
  }
427
436
  ],
428
437
  selectedValue: null
@@ -497,7 +506,6 @@ export default {
497
506
  this.windowWidth = window.innerWidth;
498
507
  },
499
508
  firstLevelClick(item, ref) {
500
- // Reset screen to fix whitespace
501
509
  if (window && window.scrollTo && this.screen === "desktop") {
502
510
  window.scrollTo(0, 0);
503
511
  }
@@ -527,10 +535,8 @@ export default {
527
535
  this.isSecondLevelOpen === true &&
528
536
  selectedItem === previouslyOpenItem
529
537
  ) {
530
- selectedItem.classList.remove("isActiveParent");
531
- selectedItem.getElementsByTagName("a")[0].setAttribute("aria-expanded", "false");
532
- this.isSecondLevelOpen = false;
533
- this.letBodyOverflow(true);
538
+ this.closeMegaMenu();
539
+
534
540
  }
535
541
  // If the link has no children then go to that page
536
542
  else if (!item.below) {
@@ -578,6 +584,7 @@ export default {
578
584
  }
579
585
  // If the menu is already open and the same item is clicked,
580
586
  // close it
587
+
581
588
  else if (
582
589
  item.below &&
583
590
  this.isThirdLevelOpen === true &&