From 6b47aa6d9c8e03296c14240d425bce461a6f8af5 Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Mon, 1 Apr 2024 16:13:17 +0700 Subject: [PATCH] Fix: button label uses Text component instead of span --- src/components/Button/Button.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button/Button.vue b/src/components/Button/Button.vue index d72e8f8a..287c5df9 100644 --- a/src/components/Button/Button.vue +++ b/src/components/Button/Button.vue @@ -15,7 +15,7 @@ UnstyledButton( ) slot(v-if="hasSlot(slots.icon)" name="icon") Icon(v-else-if="icon", :source="loading ? 'placeholder' : icon") - span( + Text( v-if="hasChildren", as="span", :variant="size === 'large' || hasPlainText ? 'bodyMd' : 'bodySm'",