Skip to content

Commit

Permalink
Merge pull request #1472 from PrefectHQ/nicholas/chore/p-button-icon-…
Browse files Browse the repository at this point in the history
…weight-2024-10-16

Chore: Allow passing solid to `PButton` to influence underlying icon
  • Loading branch information
znicholasbrown authored Oct 16, 2024
2 parents ba9433c + a841d74 commit 1a74351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Button/PButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
>
<div class="p-button__content">
<template v-if="icon">
<PIcon :size="iconSize" :icon="icon" class="p-button__icon" />
<PIcon :size="iconSize" :icon :solid class="p-button__icon" />
</template>
<slot />
<template v-if="iconAppend">
<PIcon :size="iconSize" :icon="iconAppend" class="p-button__icon" />
<PIcon :size="iconSize" :icon="iconAppend" :solid="solidAppend ?? solid" class="p-button__icon" />
</template>
</div>
<template v-if="loading">
Expand Down Expand Up @@ -71,6 +71,8 @@
const props = defineProps<{
variant?: ButtonProps['variant'],
size?: ButtonProps['size'],
solid?: boolean,
solidAppend?: boolean,
primary?: boolean,
flat?: boolean,
selected?: boolean,
Expand Down

0 comments on commit 1a74351

Please sign in to comment.