prefix theme colors for consumer compatibility
This commit is contained in:
@@ -54,11 +54,11 @@
|
||||
<button
|
||||
{id}
|
||||
class={[
|
||||
'text-text flex size-7 appearance-none items-center',
|
||||
'text-sui-text flex size-7 appearance-none items-center',
|
||||
'justify-center rounded-lg shadow transition-all hover:opacity-75',
|
||||
color === 'default' && 'bg-white',
|
||||
color === 'contrast' && 'border-text/40 border bg-white',
|
||||
!valid && 'border-accent-400 border'
|
||||
!valid && 'border-sui-accent-400 border'
|
||||
]}
|
||||
onclick={() => {
|
||||
if (value === false || value === 'indeterminate') {
|
||||
@@ -79,14 +79,14 @@
|
||||
{#if children}
|
||||
<label
|
||||
class={[
|
||||
'text-text pl-4 font-medium transition-colors select-none',
|
||||
!valid && 'text-accent-400'
|
||||
'text-sui-text pl-4 font-medium transition-colors select-none',
|
||||
!valid && 'text-sui-accent-400'
|
||||
]}
|
||||
for={id}
|
||||
>
|
||||
{@render children()}
|
||||
{#if required}
|
||||
<span class="text-accent-400">*</span>
|
||||
<span class="text-sui-accent-400">*</span>
|
||||
{/if}
|
||||
</label>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user