Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AmountField typography and styling #1025

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function AmountField({ onAmountChange, amount, readOnly, isFilled, budget
return (
<div className={"grid justify-center gap-2"}>
<div
className={cn("mx-auto flex items-center gap-1 font-clash text-lg", {
className={cn("mx-auto flex items-center gap-1 text-lg", {
"text-xl": primary.value.length < 22,
"text-2xl": primary.value.length < 18,
"text-3xl": primary.value.length < 14,
Expand All @@ -120,7 +120,7 @@ export function AmountField({ onAmountChange, amount, readOnly, isFilled, budget
type="text"
style={{ width: inputWidth }}
className={cn(
"flex bg-transparent text-right font-medium text-typography-primary outline-none transition-colors",
"flex bg-transparent text-right font-medium tabular-nums text-typography-primary outline-none transition-colors",
{
"text-typography-tertiary placeholder:text-typography-tertiary": !isFilled,
}
Expand All @@ -132,7 +132,7 @@ export function AmountField({ onAmountChange, amount, readOnly, isFilled, budget
/>
<div onClick={handleFocusInput}>
<span
className={cn("font-medium text-typography-primary transition-colors", {
className={cn("font-clash font-medium text-typography-primary transition-colors", {
"text-typography-tertiary": !isFilled,
})}
>
Expand Down