Skip to content

Commit c68e177

Browse files
authored
fix: increase touch targets + increase lighthouse min a11y score to 100% (npmx-dev#121)
1 parent 513989f commit c68e177

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.lighthouserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"assert": {
1818
"assertions": {
19-
"categories:accessibility": ["warn", { "minScore": 0.9 }]
19+
"categories:accessibility": ["warn", { "minScore": 1 }]
2020
}
2121
},
2222
"upload": {

app/components/ProvenanceBadge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const providerLabels: Record<string, string> = {
2222
:href="`https://www.npmjs.com/package/${packageName}/v/${version}#provenance`"
2323
target="_blank"
2424
rel="noopener noreferrer"
25-
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted hover:text-fg transition-colors duration-200"
25+
class="inline-flex items-center justify-center gap-1 text-xs font-mono text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
2626
:title="
2727
provider
2828
? `Verified: published via ${providerLabels[provider] ?? provider}`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ defineOgImageComponent('Package', {
387387
:href="`https://www.npmjs.com/package/${pkg.name}/v/${displayVersion.version}#provenance`"
388388
target="_blank"
389389
rel="noopener noreferrer"
390-
class="inline-flex items-center gap-1.5 text-fg-muted hover:text-fg transition-colors duration-200"
390+
class="inline-flex items-center justify-center gap-1.5 text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
391391
title="Verified provenance"
392392
>
393393
<span

0 commit comments

Comments
 (0)