Skip to content

Commit 806c914

Browse files
author
Aymeric Giraudet
committed
hover
1 parent f85ea4b commit 806c914

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/instantsearch.css/src/components/autocomplete.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,11 @@
311311
display: grid;
312312
min-height: calc(var(--ais-autocomplete-spacing) * 2.5);
313313
padding: calc(var(--ais-autocomplete-spacing-half) / 2);
314-
// When the result is active
314+
315+
// background: red;
316+
317+
// When the result is active, either by hover or keyboard navigation
318+
&:hover,
315319
&[aria-selected='true'] {
316320
background-color: rgba(
317321
var(--ais-autocomplete-selected-color-rgb),

0 commit comments

Comments
 (0)