Skip to content

Commit 4e47133

Browse files
committed
fix: small fixes
1 parent 42b8428 commit 4e47133

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/components/PackageCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const emit = defineEmits<{
4848
<NuxtLink
4949
:to="{ name: 'package', params: { package: result.package.name.split('/') } }"
5050
:prefetch-on="prefetch ? 'visibility' : 'interaction'"
51-
class="focus-visible:outline-none decoration-none scroll-mt-48 scroll-mb-6 after:content-[''] after:absolute after:inset-0"
51+
class="decoration-none scroll-mt-48 scroll-mb-6 after:content-[''] after:absolute after:inset-0"
5252
:data-result-index="index"
5353
@focus="index != null && emit('focus', index)"
5454
@mouseenter="index != null && emit('focus', index)"
@@ -108,7 +108,7 @@ const emit = defineEmits<{
108108
</dd>
109109
</div>
110110
<div v-if="result.package.license" class="flex items-center gap-1.5">
111-
<dt class="sr-only">License</dt>
111+
<dt class="sr-only">{{ $t('package.card.license') }}</dt>
112112
<dd>{{ result.package.license }}</dd>
113113
</div>
114114
</dl>

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
"publisher": "Publisher",
117117
"updated": "Updated",
118118
"weekly_downloads": "Weekly downloads",
119-
"keywords": "Keywords"
119+
"keywords": "Keywords",
120+
"license": "License"
120121
},
121122
"versions": {
122123
"title": "Versions",

uno.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ export default defineConfig({
121121
['link-subtle', 'text-fg-muted hover:text-fg transition-colors duration-200 focus-ring'],
122122

123123
// Cards
124-
['card', 'bg-bg-subtle border border-border rounded-lg p-4 sm:p-6 transition-all duration-200'],
124+
[
125+
'card',
126+
'bg-bg-subtle border border-border rounded-lg p-4 sm:p-6 transition-[border-color,background-color] duration-200',
127+
],
125128
['card-interactive', 'card hover:(border-border-hover bg-bg-muted) cursor-pointer'],
126129

127130
// Form elements

0 commit comments

Comments
 (0)