Fixed #5067 - Tag: center icon when no label is present (icon-only mode)

pull/5069/head
tugcekucukoglu 2024-01-11 20:57:10 +03:00
parent e251feb83a
commit 7159d0c5ab
58 changed files with 172 additions and 58 deletions

View File

@ -2,7 +2,7 @@
<span :class="cx('root')" v-bind="ptm('root')" data-pc-name="tag">
<component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
<span v-else-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
<slot>
<slot v-if="value || $slots.default">
<span :class="cx('value')" v-bind="ptm('value')">{{ value }}</span>
</slot>
</span>

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5742,9 +5742,11 @@
color: #151515;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5742,9 +5742,11 @@
color: #151515;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5742,9 +5742,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5742,9 +5742,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5681,9 +5681,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #450a0a;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5700,9 +5700,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #212529;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #212529;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #212529;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #212529;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #212121;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #212121;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #212121;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #212121;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5754,9 +5754,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5758,9 +5758,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5681,9 +5681,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5693,9 +5693,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5681,9 +5681,11 @@
color: #262222;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5705,9 +5705,11 @@
color: #1d1e27;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5705,9 +5705,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5765,9 +5765,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5730,9 +5730,11 @@
color: #121212;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5762,9 +5762,11 @@
color: #0e1315;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;

View File

@ -5762,9 +5762,11 @@
color: #ffffff;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-tag .p-tag-icon:not(:last-child) {
margin-right: 0.25rem;
}
.p-tag .p-tag-icon.p-icon {
width: 0.75rem;
height: 0.75rem;