Re-add styling for highlights
This commit is contained in:
parent
cdb2570203
commit
374186ed27
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue