From 4a281b30939b0ccecbcfb213bb1102b21d959791 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 22 Mar 2024 17:18:48 +0100 Subject: [PATCH] fix(Input): invalid `xs` size --- playground/pages/input.vue | 8 ++++ src/theme/input.ts | 2 +- .../__snapshots__/Input.spec.ts.snap | 44 +------------------ 3 files changed, 10 insertions(+), 44 deletions(-) diff --git a/playground/pages/input.vue b/playground/pages/input.vue index 0621966f..b3f2036c 100644 --- a/playground/pages/input.vue +++ b/playground/pages/input.vue @@ -20,6 +20,14 @@ const sizes = Object.keys(theme.variants.size) +
+ +
{ trailingIcon: 'size-4' }, xs: { - base: 'text-sm gap-x-1.5 px-2.5 py-1.5', + base: 'text-sm gap-x-1.5 px-2.5 py-1', leading: 'px-2.5', trailing: 'px-2.5', leadingIcon: 'size-4', diff --git a/test/components/__snapshots__/Input.spec.ts.snap b/test/components/__snapshots__/Input.spec.ts.snap index 0f073014..0acd0c7b 100644 --- a/test/components/__snapshots__/Input.spec.ts.snap +++ b/test/components/__snapshots__/Input.spec.ts.snap @@ -79,48 +79,6 @@ exports[`Input > renders with size 2xs correctly 1`] = `
" `; -exports[`Input > renders with size correctly 1`] = ` -"
- - -
" -`; - -exports[`Input > renders with size correctly 2`] = ` -"
- - -
" -`; - -exports[`Input > renders with size correctly 3`] = ` -"
- - -
" -`; - -exports[`Input > renders with size correctly 4`] = ` -"
- - -
" -`; - -exports[`Input > renders with size correctly 5`] = ` -"
- - -
" -`; - -exports[`Input > renders with size correctly 6`] = ` -"
- - -
" -`; - exports[`Input > renders with size lg correctly 1`] = ` "
@@ -150,7 +108,7 @@ exports[`Input > renders with size xl correctly 1`] = ` `; exports[`Input > renders with size xs correctly 1`] = ` -"
+"
"