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