Skip to content

Commit 7f423d0

Browse files
authored
fix: replace remaining built in icons in chart context menus (#1825)
1 parent 0e4175d commit 7f423d0

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

app/components/Package/TrendsChart.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,18 @@ watch(selectedMetric, value => {
20362036
<template #optionSvg>
20372037
<span class="text-fg-subtle font-mono pointer-events-none">SVG</span>
20382038
</template>
2039+
<template #optionStack="{ isStack }">
2040+
<span
2041+
v-if="isStack"
2042+
class="i-lucide:layers-2 text-fg-subtle w-6 h-6 pointer-events-none"
2043+
aria-hidden="true"
2044+
/>
2045+
<span
2046+
v-else
2047+
class="i-lucide:chart-line text-fg-subtle w-6 h-6 pointer-events-none"
2048+
aria-hidden="true"
2049+
/>
2050+
</template>
20392051

20402052
<template #annotator-action-close>
20412053
<span
@@ -2047,6 +2059,28 @@ watch(selectedMetric, value => {
20472059
<template #annotator-action-color="{ color }">
20482060
<span class="i-lucide:palette w-6 h-6" :style="{ color }" aria-hidden="true" />
20492061
</template>
2062+
<template #annotator-action-draw="{ mode }">
2063+
<span
2064+
v-if="mode === 'arrow'"
2065+
class="i-lucide:move-up-right text-fg-subtle w-6 h-6"
2066+
aria-hidden="true"
2067+
/>
2068+
<span
2069+
v-if="mode === 'text'"
2070+
class="i-lucide:type text-fg-subtle w-6 h-6"
2071+
aria-hidden="true"
2072+
/>
2073+
<span
2074+
v-if="mode === 'line'"
2075+
class="i-lucide:pen-line text-fg-subtle w-6 h-6"
2076+
aria-hidden="true"
2077+
/>
2078+
<span
2079+
v-if="mode === 'draw'"
2080+
class="i-lucide:line-squiggle text-fg-subtle w-6 h-6"
2081+
aria-hidden="true"
2082+
/>
2083+
</template>
20502084
<template #annotator-action-undo>
20512085
<span
20522086
class="i-lucide:undo-2 w-6 h-6 text-fg-subtle"

app/components/Package/VersionDistribution.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,29 @@ const chartConfig = computed<VueUiXyConfig>(() => {
551551
<span class="i-lucide:palette w-6 h-6" :style="{ color }" aria-hidden="true" />
552552
</template>
553553

554+
<template #annotator-action-draw="{ mode }">
555+
<span
556+
v-if="mode === 'arrow'"
557+
class="i-lucide:move-up-right text-fg-subtle w-6 h-6"
558+
aria-hidden="true"
559+
/>
560+
<span
561+
v-if="mode === 'text'"
562+
class="i-lucide:type text-fg-subtle w-6 h-6"
563+
aria-hidden="true"
564+
/>
565+
<span
566+
v-if="mode === 'line'"
567+
class="i-lucide:pen-line text-fg-subtle w-6 h-6"
568+
aria-hidden="true"
569+
/>
570+
<span
571+
v-if="mode === 'draw'"
572+
class="i-lucide:line-squiggle text-fg-subtle w-6 h-6"
573+
aria-hidden="true"
574+
/>
575+
</template>
576+
554577
<template #annotator-action-undo>
555578
<span
556579
class="i-lucide:undo-2 w-6 h-6 text-fg-subtle"

0 commit comments

Comments
 (0)