From 3cf5535b2faa28b557ca55d694abdfa7d7ad0efc Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 7 Oct 2024 14:23:24 +0200 Subject: [PATCH] fix(Button): center text with `block` prop Resolves nuxt/ui#2317 --- src/theme/button.ts | 2 +- test/components/__snapshots__/Button.spec.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/button.ts b/src/theme/button.ts index 829282cb..af7e4c16 100644 --- a/src/theme/button.ts +++ b/src/theme/button.ts @@ -52,7 +52,7 @@ export default (options: Required) => ({ }, block: { true: { - base: 'w-full', + base: 'w-full justify-center', trailingIcon: 'ms-auto' } }, diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index c577e726..b7d0ba2f 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Button > renders with block correctly 1`] = ` -""