Skip to content

Commit 89b960e

Browse files
committed
🐛 💄 remove unnecessary span around muc-button content
1 parent 527ddd2 commit 89b960e

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/components/Button/MucButton.vue

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,18 @@
1313
copied: animateIconSpin,
1414
}"
1515
>
16-
<span>
17-
<slot v-if="!iconShownLeft" />
18-
<muc-icon
19-
v-if="icon"
20-
:icon="icon"
21-
class="m-button__icon"
22-
:class="{
23-
'm-button__icon--after': !iconShownLeft && variant != 'icon',
24-
'm-button__icon--before': iconShownLeft && variant != 'icon',
25-
'no-left-margin': variant == 'icon',
26-
}"
27-
/>
28-
<slot v-if="iconShownLeft" />
29-
</span>
16+
<slot v-if="!iconShownLeft" />
17+
<muc-icon
18+
v-if="icon"
19+
:icon="icon"
20+
class="m-button__icon"
21+
:class="{
22+
'm-button__icon--after': !iconShownLeft && variant != 'icon',
23+
'm-button__icon--before': iconShownLeft && variant != 'icon',
24+
'no-left-margin': variant == 'icon',
25+
}"
26+
/>
27+
<slot v-if="iconShownLeft" />
3028
</button>
3129
</template>
3230

0 commit comments

Comments
 (0)