Skip to content

Commit

Permalink
fix(ButtonGroup): merge class with theme
Browse files Browse the repository at this point in the history
Resolves #2498
  • Loading branch information
benjamincanac committed Oct 31, 2024
1 parent ef561e7 commit d980115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/ButtonGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ provide(buttonGroupInjectionKey, computed(() => ({
</script>

<template>
<Primitive :as="as" :class="buttonGroup({ orientation })">
<Primitive :as="as" :class="buttonGroup({ orientation, class: props.class })">
<slot />
</Primitive>
</template>
2 changes: 1 addition & 1 deletion test/components/__snapshots__/ButtonGroup.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`ButtonGroup > renders orientation vertical with default slot correctly
exports[`ButtonGroup > renders with as correctly 1`] = `"<section class="relative inline-flex -space-x-px"></section>"`;
exports[`ButtonGroup > renders with class correctly 1`] = `"<div class="relative inline-flex -space-x-px"></div>"`;
exports[`ButtonGroup > renders with class correctly 1`] = `"<div class="inline-flex -space-x-px absolute"></div>"`;
exports[`ButtonGroup > renders with default slot correctly 1`] = `
"<div class="relative inline-flex -space-x-px">
Expand Down

0 comments on commit d980115

Please sign in to comment.