From e398637174008cc1bcb8519169bc3c539157cbae Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 6 May 2024 22:03:38 +0200 Subject: [PATCH] fix(Textarea): same `size` as input --- src/theme/textarea.ts | 10 ++--- .../__snapshots__/Textarea.spec.ts.snap | 42 +++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/theme/textarea.ts b/src/theme/textarea.ts index efc4de2e..b9ec5489 100644 --- a/src/theme/textarea.ts +++ b/src/theme/textarea.ts @@ -6,19 +6,19 @@ export default (config: { colors: string[] }) => ({ variants: { size: { xs: { - base: 'text-xs px-2 py-1' + base: 'px-2 py-1 text-xs' }, sm: { - base: 'text-sm px-2.5 py-1' + base: 'px-2.5 py-1.5 text-xs' }, md: { - base: 'text-sm px-2.5 py-1.5' + base: 'px-2.5 py-1.5 text-sm' }, lg: { - base: 'text-sm px-3 py-2' + base: 'px-3 py-2 text-sm' }, xl: { - base: 'text-sm px-3.5 py-2.5' + base: 'px-3 py-2 text-base' } }, variant: { diff --git a/test/components/__snapshots__/Textarea.spec.ts.snap b/test/components/__snapshots__/Textarea.spec.ts.snap index 4a1d4e82..154418d0 100644 --- a/test/components/__snapshots__/Textarea.spec.ts.snap +++ b/test/components/__snapshots__/Textarea.spec.ts.snap @@ -1,43 +1,43 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Textarea > renders with class correctly 1`] = `"
"`; +exports[`Textarea > renders with class correctly 1`] = `"
"`; -exports[`Textarea > renders with color gray correctly 1`] = `"
"`; +exports[`Textarea > renders with color gray correctly 1`] = `"
"`; -exports[`Textarea > renders with color green correctly 1`] = `"
"`; +exports[`Textarea > renders with color green correctly 1`] = `"
"`; -exports[`Textarea > renders with color primary correctly 1`] = `"
"`; +exports[`Textarea > renders with color primary correctly 1`] = `"
"`; -exports[`Textarea > renders with color red correctly 1`] = `"
"`; +exports[`Textarea > renders with color red correctly 1`] = `"
"`; -exports[`Textarea > renders with color white correctly 1`] = `"
"`; +exports[`Textarea > renders with color white correctly 1`] = `"
"`; -exports[`Textarea > renders with default slot correctly 1`] = `"
Default slot
"`; +exports[`Textarea > renders with default slot correctly 1`] = `"
Default slot
"`; -exports[`Textarea > renders with disabled correctly 1`] = `"
"`; +exports[`Textarea > renders with disabled correctly 1`] = `"
"`; -exports[`Textarea > renders with id correctly 1`] = `"
"`; +exports[`Textarea > renders with id correctly 1`] = `"
"`; -exports[`Textarea > renders with name correctly 1`] = `"
"`; +exports[`Textarea > renders with name correctly 1`] = `"
"`; -exports[`Textarea > renders with placeholder correctly 1`] = `"
"`; +exports[`Textarea > renders with placeholder correctly 1`] = `"
"`; -exports[`Textarea > renders with required correctly 1`] = `"
"`; +exports[`Textarea > renders with required correctly 1`] = `"
"`; -exports[`Textarea > renders with rows correctly 1`] = `"
"`; +exports[`Textarea > renders with rows correctly 1`] = `"
"`; -exports[`Textarea > renders with size lg correctly 1`] = `"
"`; +exports[`Textarea > renders with size lg correctly 1`] = `"
"`; -exports[`Textarea > renders with size md correctly 1`] = `"
"`; +exports[`Textarea > renders with size md correctly 1`] = `"
"`; -exports[`Textarea > renders with size sm correctly 1`] = `"
"`; +exports[`Textarea > renders with size sm correctly 1`] = `"
"`; -exports[`Textarea > renders with size xl correctly 1`] = `"
"`; +exports[`Textarea > renders with size xl correctly 1`] = `"
"`; -exports[`Textarea > renders with size xs correctly 1`] = `"
"`; +exports[`Textarea > renders with size xs correctly 1`] = `"
"`; -exports[`Textarea > renders with ui correctly 1`] = `"
"`; +exports[`Textarea > renders with ui correctly 1`] = `"
"`; -exports[`Textarea > renders with variant none correctly 1`] = `"
"`; +exports[`Textarea > renders with variant none correctly 1`] = `"
"`; -exports[`Textarea > renders with variant outline correctly 1`] = `"
"`; +exports[`Textarea > renders with variant outline correctly 1`] = `"
"`;