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