@worksafevictoria/wcl7.5 1.9.0-beta.8 → 1.9.0-beta.9
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
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</td>
|
|
35
35
|
<td>
|
|
36
36
|
<a href="javascript:void(0)" @click="show = !show" title="Contrast">
|
|
37
|
-
<span v-if="!topLevelIconsOnly">Adjust
|
|
37
|
+
<span v-if="!topLevelIconsOnly">Adjust contrast</span> <img alt="Contrast Icon" width="20px" height="20px" :src=ContrastIcon />
|
|
38
38
|
</a>
|
|
39
39
|
<div
|
|
40
40
|
class="flex-container"
|
|
@@ -661,6 +661,9 @@ export default {
|
|
|
661
661
|
selectedValue: null
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
|
+
|
|
665
|
+
emits: ['handleContrast'],
|
|
666
|
+
|
|
664
667
|
computed: {
|
|
665
668
|
showSecondLevelCaret() {
|
|
666
669
|
return (
|
|
@@ -709,6 +712,10 @@ export default {
|
|
|
709
712
|
window.addEventListener('resize', this.updateMoreMenu())
|
|
710
713
|
})
|
|
711
714
|
this.updateMoreMenu()
|
|
715
|
+
let selectedMode = document
|
|
716
|
+
.getElementById('contrastStyle')
|
|
717
|
+
?.getAttribute('data-sel')
|
|
718
|
+
this.selectedValue = selectedMode ?? 'default'
|
|
712
719
|
},
|
|
713
720
|
destroyed() {
|
|
714
721
|
window.removeEventListener('resize', this.screenWidth),
|
|
@@ -1114,6 +1121,7 @@ export default {
|
|
|
1114
1121
|
},
|
|
1115
1122
|
handleContrast(event) {
|
|
1116
1123
|
const selMode = event.target.value
|
|
1124
|
+
this.selectedValue = selMode
|
|
1117
1125
|
// the css we are going to inject
|
|
1118
1126
|
let cssVar = ''
|
|
1119
1127
|
if (selMode === 'high_contrast') {
|