fix: active color for editor buttons

This commit is contained in:
kolaente 2022-05-08 23:31:38 +02:00
parent 4b0d491359
commit f1c9887243
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 11 additions and 6 deletions

View File

@ -35,7 +35,8 @@
<a @click="toggleEdit">{{ $t('input.editor.edit') }}</a>
</li>
</ul>
<x-button v-else-if="isEditActive" @click="toggleEdit" variant="secondary" :shadow="false" v-cy="'saveEditor'">
<x-button v-else-if="isEditActive" @click="toggleEdit" variant="secondary" :shadow="false"
v-cy="'saveEditor'">
{{ $t('misc.save') }}
</x-button>
</template>
@ -176,7 +177,7 @@ export default defineComponent({
}
this.changeTimeout = setTimeout(() => {
this.$emit('update:modelValue',this.text)
this.$emit('update:modelValue', this.text)
this.$emit('change', this.text)
}, timeout)
},
@ -370,6 +371,10 @@ export default defineComponent({
button {
color: var(--grey-700);
&.active {
background: var(--grey-200);
}
svg {
vertical-align: middle;