prefix theme colors for consumer compatibility
This commit is contained in:
@@ -253,8 +253,8 @@
|
||||
class={[
|
||||
'picker absolute top-0 left-0 z-50 overflow-y-auto px-2 py-3',
|
||||
'rounded-sm border shadow-lg shadow-black/25 outline-hidden',
|
||||
'border-accent dark:border-accent/50 dark:bg-text-800 bg-white dark:sm:bg-slate-800',
|
||||
'text-text dark:text-background',
|
||||
'border-sui-accent dark:border-sui-accent/50 dark:bg-sui-text-800 bg-white dark:sm:bg-slate-800',
|
||||
'text-sui-text dark:text-sui-background',
|
||||
open && pickerPosition === 'top' && 'mb-[var(--outer-gap)]',
|
||||
open && pickerPosition === 'bottom' && 'mt-[var(--outer-gap)]'
|
||||
]}
|
||||
@@ -279,8 +279,8 @@
|
||||
class={[
|
||||
'picker-item options-center mb-0.5 flex min-h-10 flex-wrap py-2.5 pr-1.5 pl-5',
|
||||
'rounded-sm text-sm capitalize outline-hidden select-none',
|
||||
'hover:bg-accent-500/30 dark:hover:bg-accent-700/30',
|
||||
item.value === highlighted?.value && 'bg-accent-500/80 dark:bg-accent-700/80'
|
||||
'hover:bg-sui-accent-500/30 dark:hover:bg-sui-accent-700/30',
|
||||
item.value === highlighted?.value && 'bg-sui-accent-500/80 dark:bg-sui-accent-700/80'
|
||||
]}
|
||||
role="option"
|
||||
onclick={() => {
|
||||
@@ -305,7 +305,7 @@
|
||||
</div>
|
||||
|
||||
{#if item?.infotext}
|
||||
<div class="text-text/80 dark:text-background/80 ml-auto text-sm">
|
||||
<div class="text-sui-text/80 dark:text-sui-background/80 ml-auto text-sm">
|
||||
{item.infotext}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -441,7 +441,7 @@
|
||||
<div
|
||||
class={[
|
||||
'pointer-events-none absolute top-1/2 -translate-y-1/2 transform text-sm select-none',
|
||||
'text-text/80 dark:text-background/80',
|
||||
'text-sui-text/80 dark:text-sui-background/80',
|
||||
caret ? 'end-10' : 'end-[1.125rem]'
|
||||
]}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user