StealThis .dev

Law Firm — Legal FAQ

An accessible FAQ accordion for a law firm that groups common questions by Fees, Process, Consultations and Confidentiality, supports full keyboard navigation with single-open behavior, and includes a live search box that filters questions and answers as the visitor types.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

A trust-first FAQ section styled for an authoritative law firm — navy and gold, a serif voice for headings and Inter for the answers. Questions are organized into four categories: Fees & Billing, Our Process, Consultations, and Confidentiality, each rendered as an accessible disclosure accordion.

Every question is a real <button> with aria-expanded and aria-controls, so the whole list is keyboard- and screen-reader-friendly. Opening one item closes the others (single-open behavior), arrow keys move between questions, and Home / End jump to the first and last. A search box at the top filters questions and answers live, highlighting matches, hiding empty categories, and showing a graceful empty state when nothing matches.

All behavior is vanilla JavaScript — no libraries, no build step. Drop the three files in and adapt the questions to your own practice.

Illustrative UI only — not legal advice and not a substitute for a licensed attorney.