Skip to content

Commit

Permalink
Merge pull request #1741 from nextcloud/fix-actionbutton-icon-slot
Browse files Browse the repository at this point in the history
Fix ActionButton icon slot
  • Loading branch information
marcoambrosini authored Mar 8, 2021
2 parents cb128c9 + d1debef commit f28decf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/ActionButton/ActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ export default {
:aria-label="ariaLabel"
:class="{ focusable: isFocusable }"
@click="onClick">
<!-- @slot Manually provide icon -->
<slot name="icon">
<span :class="[isIconUrl ? 'action-button__icon--url' : icon]"
:style="{ backgroundImage: isIconUrl ? `url(${icon})` : null }"
class="action-button__icon" />
</slot>
<span :class="[isIconUrl ? 'action-button__icon--url' : icon]"
:style="{ backgroundImage: isIconUrl ? `url(${icon})` : null }"
class="action-button__icon">
<!-- @slot Manually provide icon -->
<slot name="icon" />
</span>

<!-- long text with title -->
<p v-if="title">
Expand Down

0 comments on commit f28decf

Please sign in to comment.