Skip to content

Commit

Permalink
fix(BaseDropdown): pass condensed prop to button
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Jul 3, 2023
1 parent deb9ffa commit 65eee43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/base/BaseDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ const shape = computed(
v-slot="{ open, close }: { open: boolean, close: () => void }"
as="div"
class="relative text-left"
:class="props.flavor === 'context' && 'w-9 h-9'"
:class="{
'h-9 w-9': props.flavor === 'context',
}"
>
<MenuButton as="template">
<slot name="button" v-bind="{ open, close }">
<BaseButton
v-if="props.flavor === 'button'"
:color="props.buttonColor"
:condensed="props.condensed"
:shape="shape"
class="!pe-3 !ps-4"
>
Expand Down

0 comments on commit 65eee43

Please sign in to comment.