Merge pull request #7326 from rgrosjean/fix/icon_button_without_label

Button with icon onyl - Rollback change from #7123
pull/7365/head^2
Tuğçe Küçükoğlu 2025-03-04 12:44:32 +03:00 committed by GitHub
commit c5b58f2b51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<slot v-else name="icon" :class="[cx('icon')]" v-bind="ptm('icon')"> <slot v-else name="icon" :class="[cx('icon')]" v-bind="ptm('icon')">
<span v-if="icon" :class="[cx('icon'), icon, iconClass]" v-bind="ptm('icon')"></span> <span v-if="icon" :class="[cx('icon'), icon, iconClass]" v-bind="ptm('icon')"></span>
</slot> </slot>
<span v-if="!hasIcon || !!label" :class="cx('label')" v-bind="ptm('label')">{{ label || '&nbsp;' }}</span> <span :class="cx('label')" v-bind="ptm('label')">{{ label || '&nbsp;' }}</span>
<Badge v-if="badge" :value="badge" :class="badgeClass" :severity="badgeSeverity" :unstyled="unstyled" :pt="ptm('pcBadge')"></Badge> <Badge v-if="badge" :value="badge" :class="badgeClass" :severity="badgeSeverity" :unstyled="unstyled" :pt="ptm('pcBadge')"></Badge>
</slot> </slot>
</component> </component>