@@ -262,11 +262,12 @@ function handleFocus() {
262262 class =" absolute top-full inset-x-0 mt-1 bg-bg-elevated border border-border rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
263263 >
264264 <!-- No dependency option (easter egg with James) -->
265- <div
265+ <ButtonBase
266266 v-if =" showNoDependencyOption"
267267 data-navigable
268- class =" cursor-pointer px-4 py-3 transition-colors duration-100"
269- :class =" highlightedIndex === 0 ? 'bg-accent/15 text-fg' : 'hover:bg-bg-subtle'"
268+ class =" block w-full text-start"
269+ :class =" highlightedIndex === 0 ? '!bg-accent/15' : ''"
270+ :aria-label =" $t('compare.no_dependency.add_column')"
270271 @mouseenter =" highlightedIndex = 0"
271272 @click =" addPackage(NO_DEPENDENCY_ID)"
272273 >
@@ -277,24 +278,20 @@ function handleFocus() {
277278 <span class =" text-xs text-fg-muted truncate mt-0.5" >
278279 {{ $t('compare.no_dependency.typeahead_description') }}
279280 </span >
280- </div >
281+ </ButtonBase >
281282
282283 <div
283284 v-if =" isSearching && navigableItems.length === 0"
284285 class =" px-4 py-3 text-sm text-fg-muted"
285286 >
286287 {{ $t('compare.selector.searching') }}
287288 </div >
288- <div
289+ <ButtonBase
289290 v-for =" (result, index) in filteredResults"
290291 :key =" result.name"
291292 data-navigable
292- class =" cursor-pointer block w-full text-start px-4 py-3 transition-colors duration-100"
293- :class ="
294- highlightedIndex === index + resultIndexOffset
295- ? 'bg-accent/15 text-fg'
296- : 'hover:bg-bg-subtle'
297- "
293+ class =" block w-full text-start"
294+ :class =" highlightedIndex === index + resultIndexOffset ? '!bg-accent/15' : ''"
298295 @mouseenter =" highlightedIndex = index + resultIndexOffset"
299296 @click =" addPackage(result.name)"
300297 >
@@ -305,7 +302,7 @@ function handleFocus() {
305302 >
306303 {{ result.description }}
307304 </span >
308- </div >
305+ </ButtonBase >
309306 </div >
310307 </Transition >
311308 </div >
0 commit comments