chore: use fontWeight for Text component (#25262)

This commit is contained in:
Alex
2026-01-14 10:25:30 -06:00
committed by GitHub
parent 6fdd1ce41a
commit 6e00fd92ef
16 changed files with 40 additions and 31 deletions
@@ -16,7 +16,11 @@
<div class="grid grid-cols-[25px_1fr] w-full px-1 py-0.5" class:border-b={borderBottom} {title}>
<Icon {icon} size="18" class="text-dark/25 {highlight ? 'text-primary/75' : ''}" />
<div class="justify-self-end text-end rounded px-1 transition-colors w-full overflow-hidden">
<Text size="tiny" class={`${highlight ? 'font-semibold text-primary' : ''} text-ellipsis w-full overflow-hidden`}>
<Text
size="tiny"
fontWeight={highlight ? 'semi-bold' : 'normal'}
class={`${highlight ? 'text-primary' : ''} text-ellipsis w-full overflow-hidden`}
>
{@render children?.()}
</Text>
</div>