Skip to content

Commit ac362e0

Browse files
committed
refactor: replace copy icon
1 parent 8d6ea45 commit ac362e0

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/components/Header/ConnectorModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function handleDisconnect() {
121121
:aria-label="copied ? $t('connector.modal.copied') : $t('connector.modal.copy_command')"
122122
@click="copy('pnpm npmx-connector')"
123123
class="ms-auto"
124-
:classicon="copied ? 'i-lucide:check text-green-500' : 'i-carbon:copy'"
124+
:classicon="copied ? 'i-lucide:check text-green-500' : 'i-lucide:copy'"
125125
/>
126126
</div>
127127

@@ -142,7 +142,7 @@ function handleDisconnect() {
142142
class="ms-auto text-fg-subtle p-1.5 -m-1.5 hover:text-fg transition-colors duration-200 focus-visible:outline-accent/70 rounded"
143143
@click="copyCommand"
144144
>
145-
<span v-if="!copied" class="i-carbon:copy block w-5 h-5" aria-hidden="true" />
145+
<span v-if="!copied" class="i-lucide:copy block w-5 h-5" aria-hidden="true" />
146146
<span
147147
v-else
148148
class="i-lucide:check block w-5 h-5 text-green-500"

app/components/Readme.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function handleClick(event: MouseEvent) {
3030
const icon = copyTarget.querySelector('span')
3131
if (!icon) return
3232
33-
const originalIcon = 'i-carbon:copy'
33+
const originalIcon = 'i-lucide:copy'
3434
const successIcon = 'i-lucide:check'
3535
3636
icon.classList.remove(originalIcon)

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ const showSkeleton = shallowRef(false)
692692
:aria-label="copiedPkgName ? $t('common.copied') : $t('package.copy_name')"
693693
>
694694
<span
695-
:class="copiedPkgName ? 'i-lucide:check' : 'i-carbon:copy'"
695+
:class="copiedPkgName ? 'i-lucide:check' : 'i-lucide:copy'"
696696
class="w-3.5 h-3.5"
697697
aria-hidden="true"
698698
/>

server/utils/readme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ export async function renderReadmeHtml(
395395
const html = highlightCodeSync(shiki, text, lang || 'text')
396396
// Add copy button
397397
return `<div class="readme-code-block" >
398-
<button type="button" class="readme-copy-button" aria-label="Copy code" check-icon="i-lucide:check" copy-icon="i-carbon:copy" data-copy>
399-
<span class="i-carbon:copy" aria-hidden="true"></span>
398+
<button type="button" class="readme-copy-button" aria-label="Copy code" check-icon="i-lucide:check" copy-icon="i-lucide:copy" data-copy>
399+
<span class="i-lucide:copy" aria-hidden="true"></span>
400400
<span class="sr-only">Copy code</span>
401401
</button>
402402
${html}

0 commit comments

Comments
 (0)