UI: flash border when hovering over the edit-button

This commit is contained in:
Pieter Vander Vennet 2024-07-29 03:14:57 +02:00
parent 337d0ec330
commit 3c3db7f933

View file

@ -105,7 +105,7 @@
</button>
</TagRenderingQuestion>
{:else}
<div class="low-interaction flex items-center justify-between overflow-hidden rounded pl-2">
<div class="low-interaction flex items-center justify-between overflow-hidden rounded pl-2 answer">
<TagRenderingAnswer
id={answerId}
{config}
@ -130,3 +130,14 @@
<TagRenderingAnswer {config} {tags} {selectedElement} {state} {layer} />
{/if}
</div>
<style>
.answer {
border: 1px solid #00000000;
}
.answer:has(.edit-button:hover) {
border: 1px solid var(--catch-detail-color-contrast);
}
</style>