Skip to content

Commit f28decf

Browse files
Merge pull request #1741 from nextcloud/fix-actionbutton-icon-slot
Fix ActionButton icon slot
2 parents cb128c9 + d1debef commit f28decf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/ActionButton/ActionButton.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ export default {
8585
:aria-label="ariaLabel"
8686
:class="{ focusable: isFocusable }"
8787
@click="onClick">
88-
<!-- @slot Manually provide icon -->
89-
<slot name="icon">
90-
<span :class="[isIconUrl ? 'action-button__icon--url' : icon]"
91-
:style="{ backgroundImage: isIconUrl ? `url(${icon})` : null }"
92-
class="action-button__icon" />
93-
</slot>
88+
<span :class="[isIconUrl ? 'action-button__icon--url' : icon]"
89+
:style="{ backgroundImage: isIconUrl ? `url(${icon})` : null }"
90+
class="action-button__icon">
91+
<!-- @slot Manually provide icon -->
92+
<slot name="icon" />
93+
</span>
9494

9595
<!-- long text with title -->
9696
<p v-if="title">

0 commit comments

Comments
 (0)