chore: Feedback fixes

This commit is contained in:
iamsivin
2025-12-22 17:22:42 +05:30
parent 8191d65033
commit dcd41cdae0
30 changed files with 124 additions and 60 deletions
@@ -154,6 +154,13 @@ const STYLE_CONFIG = {
'text-n-teal-9 hover:enabled:bg-n-alpha-2 focus-visible:bg-n-alpha-2 outline-transparent',
},
},
iconColor: {
blue: 'text-n-blue-11',
ruby: 'text-n-ruby-11',
amber: 'text-n-amber-11',
slate: 'text-n-slate-11',
teal: 'text-n-teal-11',
},
sizes: {
regular: {
xs: 'h-6 px-2 rounded-lg',
@@ -249,7 +256,11 @@ const animationClasses = computed(() => {
}"
>
<slot v-if="(icon || $slots.icon) && !isLoading" name="icon">
<Icon :icon="icon" class="flex-shrink-0" />
<Icon
:icon="icon"
class="flex-shrink-0"
:class="STYLE_CONFIG.iconColor[computedColor]"
/>
</slot>
<Spinner v-if="isLoading" class="!w-5 !h-5 flex-shrink-0" />