Commit fd1f696f authored by dindigala's avatar dindigala
Browse files

refactor: addressed fixme comments.

parent 490cf494
Pipeline #154239 passed with stages
in 3 minutes and 31 seconds
......@@ -28,14 +28,11 @@
</div>
</div>
<!-- FIXME: remove inline style -->
<!-- FIXME: Current implementations in most browsers will remove from the accessibility tree any element with a display value of contents (but descendants will remain). This will cause the element itself to no longer be announced by screen reading technology. https://developer.mozilla.org/en-US/docs/Web/CSS/display#Accessibility_concerns -->
<div class="row" style="display: contents;">
<!-- FIXME: remove inline style -->
<div class="row">
<div
class="scroll-panel"
ref="contentsize"
:id="nodeid"
:style="`font-size: ${fontsize}px`"
v-html="content"
/>
</div>
......@@ -60,6 +57,11 @@ export default {
sequenceindex: 0,
};
},
watch: {
fontsize() {
this.$refs.contentsize.style.fontSize = `${this.fontsize}px`;
},
},
methods: {
decrease() {
const min = 8;
......@@ -96,6 +98,8 @@ export default {
this.content = await this.request(this.contenturl, 'text').then((data) => data);
},
mounted() {
this.$refs.contentsize.style.fontSize = `${this.fontsize}px`;
this.$root.$on('update-sequence-index', (index) => {
if (this.manifests[index].support) {
this.manifests[index].support.map(this.getSupport);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment