Fix styles of tag renderer to make it readable but remove hover state
This commit is contained in:
parent
eaaf3dfbca
commit
509ada35fc
|
@ -9,13 +9,26 @@
|
||||||
$: leftover = roles.length - tags.length
|
$: leftover = roles.length - tags.length
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tags>
|
<div class="tag-renderer">
|
||||||
{#each tags as tag}
|
<Tags>
|
||||||
<Tag disabled>
|
{#each tags as tag}
|
||||||
{tag}
|
<Tag>
|
||||||
</Tag>
|
{tag}
|
||||||
{/each}
|
</Tag>
|
||||||
{#if leftover}
|
{/each}
|
||||||
<Tag>+{leftover} more</Tag>
|
{#if leftover}
|
||||||
{/if}
|
<Tag>+{leftover} more</Tag>
|
||||||
</Tags>
|
{/if}
|
||||||
|
</Tags>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.tag-renderer :global(.spectrum-Tags-item:hover) {
|
||||||
|
color: var(--spectrum-alias-label-text-color);
|
||||||
|
border-color: var(--spectrum-alias-border-color-darker-default);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.tag-renderer :global(.spectrum-Tags-itemLabel) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue