Skip to content

Commit e23e432

Browse files
marcoambrosinibackportbot[bot]
authored andcommitted
Update listitem for new counterbubble styles
Signed-off-by: marco <marcoambrosini@pm.me>
1 parent e4d3d5f commit e23e432

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/components/CounterBubble/CounterBubble.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
type: String,
6060
default: '',
6161
validator(value) {
62-
return ['highlighted', 'outlined'].indexOf(value) !== -1
62+
return ['highlighted', 'outlined', ''].indexOf(value) !== -1
6363
},
6464
},
6565
},

src/components/ListItem/ListItem.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:bold="false"
2929
:details="'One hour ago'"
3030
:counter-number="44"
31-
:counter-highlighted="true">
31+
counterType="highlighted">
3232
<template #icon>
3333
<avatar :size="44" user="janedoe" display-name="Jane Doe" />
3434
</template>
@@ -147,7 +147,7 @@
147147
<span v-if="!displayActions" class="line-two__counter">
148148
<CounterBubble
149149
v-if="counterNumber != 0"
150-
:highlighted="counterHighlighted">
150+
:type="counterType">
151151
{{ counterNumber }}
152152
</CounterBubble>
153153
</span>
@@ -276,13 +276,15 @@ export default {
276276
},
277277
278278
/**
279-
* Toggles the highlighted state of the counter
279+
* Outlined or highlighted state of the counter
280280
*/
281-
counterHighlighted: {
282-
type: Boolean,
283-
default: false,
284-
},
285-
281+
counterType: {
282+
type: String,
283+
default: '',
284+
validator(value) {
285+
return ['highlighted', 'outlined', ''].indexOf(value) !== -1
286+
},
287+
},
286288
},
287289
288290
data() {

0 commit comments

Comments
 (0)