Use square status lights for role colours in pickerdropdowns

This commit is contained in:
Andrew Kingston 2022-07-29 14:13:57 +01:00
parent 219842248a
commit ded4cec01d
1 changed files with 7 additions and 2 deletions

View File

@ -239,7 +239,10 @@
</div> </div>
{:else if getPrimaryOptionColour(option, idx)} {:else if getPrimaryOptionColour(option, idx)}
<span class="option-left"> <span class="option-left">
<StatusLight color={getPrimaryOptionColour(option, idx)} /> <StatusLight
square
color={getPrimaryOptionColour(option, idx)}
/>
</span> </span>
{/if} {/if}
<span class="spectrum-Menu-itemLabel"> <span class="spectrum-Menu-itemLabel">
@ -259,6 +262,7 @@
{#if getPrimaryOptionIcon(option, idx) && getPrimaryOptionColour(option, idx)} {#if getPrimaryOptionIcon(option, idx) && getPrimaryOptionColour(option, idx)}
<span class="option-right"> <span class="option-right">
<StatusLight <StatusLight
square
color={getPrimaryOptionColour(option, idx)} color={getPrimaryOptionColour(option, idx)}
/> />
</span> </span>
@ -287,7 +291,7 @@
</span> </span>
{:else if secondaryFieldColour} {:else if secondaryFieldColour}
<span class="option-left"> <span class="option-left">
<StatusLight color={secondaryFieldColour} /> <StatusLight square color={secondaryFieldColour} />
</span> </span>
{/if} {/if}
@ -325,6 +329,7 @@
{#if getSecondaryOptionColour(option, idx)} {#if getSecondaryOptionColour(option, idx)}
<span class="option-left"> <span class="option-left">
<StatusLight <StatusLight
square
color={getSecondaryOptionColour(option, idx)} color={getSecondaryOptionColour(option, idx)}
/> />
</span> </span>