sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
222 stars 85 forks source link

background color of result items being transparent #100

Open Abenezer01 opened 1 year ago

Abenezer01 commented 1 year ago

background color of results items being transparent and I can't find a setting to change it image

dobroangle commented 1 year ago

try setting zIndex: 10

muruw commented 1 year ago

This seems like something that should be enabled by default, no? I can't think of a reason why the items should be transparent. The current solution as dobroangle said is indeed to add:

<ReactSearchAutocomplete styling={{ zIndex: 10 }} />
ahsanazwar commented 1 year ago

<ReactSearchAutocomplete items={getSearch} onSearch={handleOnSearch} onHover={handleOnHover} onSelect={handleOnSelect} onFocus={handleOnFocus} autoFocus formatResult={formatResult} styling={{borderRadius: "0",zIndex:"999"}} className="headerSearch" />

.headerSearch .wrapper ul{ background-color: #fff; }