Skip to content

Add FAQ search with highlighting, auto-scroll, and no-results feedback#1476

Merged
omroy07 merged 2 commits intoomroy07:mainfrom
Eshajha19:serach-faq
Feb 12, 2026
Merged

Add FAQ search with highlighting, auto-scroll, and no-results feedback#1476
omroy07 merged 2 commits intoomroy07:mainfrom
Eshajha19:serach-faq

Conversation

@Eshajha19
Copy link
Contributor

📝 PR Description

Summary

Implemented a fully functional FAQ search system that filters, highlights, and prioritizes matching FAQs while providing clear user feedback when no results are found.

Key Features

🔍 Real-time FAQ filtering based on search input

🟨 Keyword highlighting in questions and answers

⬆️ Automatically moves matching FAQs to top of their section

📜 Auto-scrolls to first matching result

❌ Displays a friendly "No matching FAQs found" message

🔄 Restores full FAQ list when search is cleared

UX Improvements

Automatically expands matched FAQ items

Hides non-matching FAQs for focus

Clear visual feedback for zero results

Files Updated

faq.html

Added #faqNoResults placeholder element

faq.css / style.css

Added styles for no-results feedback message

Inline <script> in faq.html

Updated handleSearch() logic for filtering, highlighting, and no-results handling

Screenshots / Demo

Screenshot 2026-02-12 204645 Screenshot 2026-02-12 204656

This PR #1476 closes issue #1454

@vercel
Copy link

vercel bot commented Feb 12, 2026

@Eshajha19 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@omroy07 omroy07 merged commit 6c7fd14 into omroy07:main Feb 12, 2026
2 of 6 checks passed
@github-actions
Copy link

🎉 Congrats @Eshajha19 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants