Re-add styling for highlights

This commit is contained in:
Ramon Wenger 2020-01-07 14:33:43 +01:00 committed by Ramon Wenger
parent cdb2570203
commit 374186ed27
1 changed files with 5 additions and 6 deletions

View File

@ -33,7 +33,7 @@
return parts return parts
.filter(part => part.text.length) .filter(part => part.text.length)
.reduce((previous, part) => { .reduce((previous, part) => {
if(part.correct) { if (part.correct) {
return `${previous}${part.text}`; return `${previous}${part.text}`;
} else { } else {
return `${previous}<span class="spellcheck__correction">${part.text}</span>`; return `${previous}<span class="spellcheck__correction">${part.text}</span>`;
@ -44,11 +44,10 @@
} }
</script> </script>
<style scoped lang="scss"> <style lang="scss">
.spellcheck { .spellcheck {
&__correction { &__correction {
background: yellow; background: yellow;
}
} }
}
</style> </style>