Skip to content

Commit

Permalink
Fix: button label uses Text component instead of span
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed Apr 1, 2024
1 parent 8caae0d commit 6b47aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 6b47aa6

Please sign in to comment.