Skip to content

Commit 8e54092

Browse files
committed
Improvement - VueUiSparkbar - Add css classes for data labels #273
1 parent fb98eb5 commit 8e54092

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/vue-ui-sparkbar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ function onTrapLeave(datapoint, index) {
414414
:data-cy="`sparkbar-value-${i}`"
415415
v-if="FINAL_CONFIG.style.labels.value.show"
416416
:style="`font-weight:${FINAL_CONFIG.style.labels.value.bold ? 'bold' : 'normal'}`"
417+
class="vue-ui-sparkbar-datapoint-name"
417418
>: {{ applyDataLabel(
418419
bar.formatter,
419420
bar.value,
@@ -430,6 +431,7 @@ function onTrapLeave(datapoint, index) {
430431
<span
431432
:data-cy="`sparkbar-target-value-${i}`"
432433
v-if="FINAL_CONFIG.style.layout.showTargetValue"
434+
class="vue-ui-sparkbar-datapoint-value"
433435
>
434436
{{ ' ' + FINAL_CONFIG.style.layout.targetValueText }}
435437
{{ applyDataLabel(

0 commit comments

Comments
 (0)