fix: make no-hits result seem non-interactive
This commit is contained in:
committed by
mrugesh
parent
00e0f574df
commit
992ee98cc1
@ -51,7 +51,9 @@ const CustomHits = connectHits(
|
|||||||
{allHits.map((hit, i) => (
|
{allHits.map((hit, i) => (
|
||||||
<li
|
<li
|
||||||
className={
|
className={
|
||||||
i === selectedIndex ? 'ais-Hits-item selected' : 'ais-Hits-item'
|
!noHits && i === selectedIndex
|
||||||
|
? 'ais-Hits-item selected'
|
||||||
|
: 'ais-Hits-item'
|
||||||
}
|
}
|
||||||
data-fccobjectid={hit.objectID}
|
data-fccobjectid={hit.objectID}
|
||||||
key={hit.objectID}
|
key={hit.objectID}
|
||||||
|
@ -79,6 +79,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-hits-footer.fcc_suggestion_item:hover {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
.fcc_sr_only {
|
.fcc_sr_only {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
|
Reference in New Issue
Block a user