Closed PR4NJ41 closed 2 months ago
@ragesoss Sir, In order to fix this, should I use icon (as earlier) or add 'search' label as in article finder?
@PR4NJ41 Thanks for finding this out. This issue is because of changes done on articles searchbar https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/5741. I didn't know search-bar
class inside _article_finder.styl
was reused at other search bars too. We can either separate the CSS of article searchbar or use the same changes on all the search bars.
If we choose to keep the new CSS. It'll only need removing some extra inline CSS in search_bar.jsx
and adding a white svg search icon. And it will look like this :
<div className="search-bar" style={{ position: 'relative' }}>
<input type="text" name={name} placeholder={placeholder} ref={ref} defaultValue={value} onKeyUp={onEnter}/>
<button className="" onClick={onClickHandler}><i className="icon-search-white" /><span style={{ padding: '0 5px' }}>Search</span></button>
</div>
Also, new style also supports autocomplete UI for searchbar. @ragesoss
@prathamVaidya Yes, I am aware of it. I was waiting for the final confirmation from @ragesoss before making a PR.
@PR4NJ41 good catch. I think the icon like before is best.
@ragesoss Thanks Sir. I will fix it. Also in article finder the current design should remain intact ?
@ragesoss Thanks Sir. I will fix it. Also in article finder the current design should remain intact ?
Yes
What is happening?
The search bar component on many pages like
explore
andsearch Campaigns
is currently lacking a text label or accompanying icon, which is essential for providing clear guidance to users regarding its purpose and functionality.The search bar used earlier looked like this:
Currently it looks like this:
To reproduce the behavior: