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 96a446ab38
commit f6406092ed
1 changed files with 7 additions and 2 deletions

View File

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