fix: make no-hits result seem non-interactive

This commit is contained in:
Oliver Eyton-Williams
2020-01-20 16:16:10 +01:00
committed by mrugesh
parent 00e0f574df
commit 992ee98cc1
2 changed files with 7 additions and 1 deletions

View File

@ -51,7 +51,9 @@ const CustomHits = connectHits(
{allHits.map((hit, i) => (
<li
className={
i === selectedIndex ? 'ais-Hits-item selected' : 'ais-Hits-item'
!noHits && i === selectedIndex
? 'ais-Hits-item selected'
: 'ais-Hits-item'
}
data-fccobjectid={hit.objectID}
key={hit.objectID}

View File

@ -79,6 +79,10 @@
cursor: pointer;
}
.no-hits-footer.fcc_suggestion_item:hover {
cursor: default;
}
.fcc_sr_only {
position: absolute;
width: 1px;