Skip to content

Commit 05492d5

Browse files
refactor: increase clickable area of chevron
1 parent 344f34d commit 05492d5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/components/CollapsibleSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ useHead({
8686
<button
8787
:id="buttonId"
8888
type="button"
89-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg-muted transition-colors duration-200 shrink-0 focus-visible:outline-accent/70 rounded"
89+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg-muted transition-colors duration-200 shrink-0 focus-visible:outline-accent/70 rounded"
9090
:aria-expanded="isOpen"
9191
:aria-controls="contentId"
9292
:aria-label="ariaLabel"

app/components/Package/Versions.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
574574
<button
575575
v-if="getTagVersions(row.tag).length > 1 || !hasLoadedAll"
576576
type="button"
577-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors rounded-sm"
577+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors rounded-sm"
578578
:aria-expanded="expandedTags.has(row.tag)"
579579
:aria-label="
580580
expandedTags.has(row.tag)
@@ -592,14 +592,14 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
592592
/>
593593
<span
594594
v-else
595-
class="w-3 h-3 transition-transform duration-200 rtl-flip"
595+
class="size-3 transition-transform duration-200 rtl-flip"
596596
:class="
597597
expandedTags.has(row.tag) ? 'i-lucide:chevron-down' : 'i-lucide:chevron-right'
598598
"
599599
aria-hidden="true"
600600
/>
601601
</button>
602-
<span v-else class="w-4" />
602+
<span v-else class="w-5" />
603603

604604
<!-- Version info -->
605605
<div class="flex-1 py-1.5 min-w-0 flex gap-2 justify-between items-center">
@@ -739,7 +739,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
739739
@click="expandOtherVersions"
740740
>
741741
<span
742-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors"
742+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors"
743743
>
744744
<span
745745
v-if="otherVersionsLoading"

0 commit comments

Comments
 (0)