Listing with search and filters
A page for finding one item in a long collection: a search panel, an h1 that says how many items match, filters that apply at once, and full-width result cards. Template 4 of 11 (canonical §11, D-BCP-24).
Used by Global Jobs /jobs and /employers; any public catalog (events, booths, courses) starts from it. Staff directories with tables follow the admin console.
Purpose
- Let people narrow a collection by words, place, and a few facets, and see at every moment how many items are left (D-BCP-24).
- Keep the result count and the applied filters in plain sight, so nobody wonders why the list changed.
- Keep every state in the URL (GET), so the back button, links, and the browser's history work.
When to use
- A public or member-facing collection of more than about five items that people search and filter: jobs, companies, events, courses.
Use something else when:
| Need | Use |
|---|---|
| Staff manage records in a table with bulk actions | Admin console (data table, filter row, bulk bar) |
| Five items or fewer | A card grid on the page, or a list with "Show {count} more" (Detail page related cards, App home rows) |
| One item | Detail page |
Structure
A document page under the sticky site header (D-LAY-15). The frame is drawn in Layout: listing with filters.
Desktop (from 1024px)
| # | Block | What it holds | Component |
|---|---|---|---|
| 0 | Skip link | "Skip to content" | Link |
| 1 | Site header | The product's header; the listing's own link is current (aria-current="page": "Find jobs") |
Site header |
| 2 | Search panel | A form with role="search" and a name, in an outlined card: the keyword field (leading search, "Clear search" when filled), the location select (leading location_on), and "Search" (filled lg) at the inline end, all in one row |
Search field, Select, Button, Card |
| 3 | h1 with the count | text-headline-sm md:text-display-sm: "15 jobs in the Middle East and North Africa"; it changes with every filter. The status region says the same in a sentence: "15 jobs match these filters." |
— |
| 4 | Applied filters | Under the h1, only when a filter is on: one input chip per value ("Full-time", its name "Remove filter: Full-time") and the "Clear filters" text link | Chip: input, Link |
| 5 | Body | Two columns, 24px apart: the filter column (272px) at the inline start, the results column beside it | — |
| 5a | Filter column | Disclosure groups ("Work type", "Workplace", "Experience", "Field"), each a compact 48px trigger (text-label-md) with expand_more over a group of 48px checkbox rows with a tabular count at the inline end. A change applies at once and updates the URL |
Accordion, Checkbox, radio, and switch |
| 5b | Results | Full-width result cards, 16px apart: for Jobs the job card (organization avatar, title as the stretched link, meta with icons, pay, the deadline, a save icon button) | Job card, Card |
| 6 | Paging | The pager after the last card ("Showing 1–15 of 48", previous and next), or an outlined md "Show {count} more" |
Pagination |
| 7 | Footer | The product's footer | Footer |
The h1 and the applied filters come before the filter column in the DOM and on screen (JB-1.07). (canonical §11 row 4, §4.4, §10.9, §10.13, §10.25; D-BCP-24, D-CSN-18, D-CSN-45, D-LAY-07)
Phone (below 640px)
| # | Block | What changes |
|---|---|---|
| 1 | Site header | The S lock-up, the CTA if it fits, the menu button |
| 2 | Search panel | Stacked: keyword, location, then "Search" full width |
| 3 | h1 | text-headline-sm, wrapping over two or three lines |
| 4 | Filters button | Under the h1: an outlined md "Filters" button with the tune icon and a count badge when filters are on (its name "Filters, 1 filter on"); the applied chips and "Clear filters" follow it |
| 5 | Filter sheet | The button opens a modal bottom sheet at its full height (max-h-[90dvh]): the title "Filters" and a close button, the same disclosure groups, and a footer with "Clear filters" (text) and "Show {n} results" (filled lg). The count in the button changes as filters change; choosing it closes the sheet and returns focus to "Filters" |
| 6 | Results | One column of cards, 16px apart |
| 7 | Paging | The pager wraps under the last card, or "Show {count} more" at full width |
In between (640–1023px)
- From 640px the search panel sits in one row: the keyword field takes the space, the location select is 13rem (208px) and "Search" keeps at least 112px, all aligned to the bottom (the search field component's panel, D-CAI-11).
- The filter column stays folded behind the "Filters" button until 1024px. The button opens the filters in the responsive modal: the full-height bottom sheet below 768px, a dialog from 768px whose body scrolls between its title and its actions (canonical §10.19, D-CSN-22).
Skeleton
The reference classes, as in listing.html.
<main id="main" tabindex="-1">
<div class="oa-container oa-stack oa-stack--loose">
<form class="oa-card oa-search oa-search--panel" role="search" aria-label="Search jobs" action="/en/jobs" method="get">
<div class="oa-field">
<label class="oa-field__label" for="q">Job title, skill or company</label>
<div class="oa-field__control">
<span class="oa-field__leading" aria-hidden="true"><span class="oa-icon" translate="no">search</span></span>
<input class="oa-field__input" id="q" name="q" type="search" enterkeyhint="search" maxlength="120" autocomplete="off" spellcheck="false" placeholder="For example: accountant, nurse, sales">
<button class="oa-icon-btn oa-field__trailing oa-search__clear" type="button" aria-label="Clear search" hidden><span class="oa-icon" aria-hidden="true" translate="no">close</span></button>
</div>
</div>
<div class="oa-field oa-field--select">
<label class="oa-field__label" for="where">Location</label>
<div class="oa-field__control">
<span class="oa-field__leading" aria-hidden="true"><span class="oa-icon" translate="no">location_on</span></span>
<select class="oa-field__input" id="where" name="location">…"All of MENA" and the places…</select>
<span class="oa-field__trailing" aria-hidden="true"><span class="oa-icon" translate="no">arrow_drop_down</span></span>
</div>
</div>
<button class="oa-btn oa-btn--filled oa-btn--lg" type="submit">Search</button>
</form>
<h1 class="oa-page-title" id="results-title">15 jobs in the Middle East and North Africa</h1>
<button class="oa-btn oa-btn--outlined" type="button" aria-haspopup="dialog" aria-controls="filters-sheet"><span class="oa-icon oa-btn__icon" aria-hidden="true" translate="no">tune</span><span class="oa-btn__label">Filters</span><span class="oa-badge" aria-hidden="true">1</span><span class="oa-visually-hidden">, 1 filter on</span></button><!-- page layout: hidden from 1024px -->
<div class="oa-chip-group" role="group" aria-label="Applied filters">
<a class="oa-chip oa-chip--input" href="/en/jobs" aria-label="Remove filter: Full-time">Full-time<span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">close</span></a>
<a class="oa-link oa-link--standalone" href="/en/jobs"><span class="oa-link__label">Clear filters</span></a>
</div>
<div><!-- page layout: one column, then the 272px filter column and the results from 1024px -->
<aside aria-labelledby="filters-title">
<h2 class="oa-text-title-lg" id="filters-title">Filters</h2>
<div class="oa-accordion oa-accordion--compact">…a disclosure per group, checkbox rows with counts…</div>
</aside>
<section aria-labelledby="results-title">
<ul class="oa-stack" role="list">…job cards…</ul>
<nav class="oa-pagination" aria-label="Pagination">…</nav>
</section>
</div>
</div>
</main>
<div class="oa-snackbar-host" role="status" aria-live="polite"><!-- the page's one status region: snackbars, and the visually hidden count sentence after each change --></div>The two-column body is page layout, which the template writes in its page-level style (no component owns it). The h1 takes the page-title class, .oa-page-title (text-headline-sm md:text-display-sm, canonical §3.5). On phones the aside's groups move into the filter sheet (Bottom sheet).
Tailwind CSS v4 (canonical §4.4, §4.5, §10.9, §10.26; D-LAY-07):
| Region | Tailwind v4 |
|---|---|
| Page frame | mx-auto flex w-full max-w-page flex-col gap-stack-loose px-gutter sm:px-gutter-medium |
| Search panel | grid gap-4 rounded-card border border-outline-variant bg-card-outlined-container p-card sm:grid-cols-[minmax(0,1fr)_13rem_auto] sm:items-end sm:p-card-medium (stacked below 640px, the button full width), as on Search field |
| h1 | text-headline-sm md:text-display-sm |
| Applied filters | flex flex-wrap items-center gap-2 |
| Body | grid gap-gutter-medium lg:grid-cols-[var(--size-nav-drawer)_minmax(0,1fr)] |
| Filter column | hidden lg:block (the sheet below 1024px) |
| Filters button | lg:hidden, the button recipe for outlined md with a leading tune and the count badge |
| Results | flex flex-col gap-grid |
Components used
Site header · Search field · Select · Text field · Button ("Search", "Filters", "Show {n} results", "Show {count} more") · Chip (input chips; suggestion chips for popular searches) · Link ("Clear filters") · Accordion (filter groups) · Checkbox, radio, and switch · Badge (filter count) · Bottom sheet (filters on phones) · Job card and Card · Avatar (organization initials) · Icon button (save) · Pagination · Empty state · Skeleton · Banner · Snackbar (host and status region).
Content
| Element | Rule | Real lines (Global Jobs) |
|---|---|---|
| Field labels | Visible, short, what to type; an example in the placeholder "For example: …" only (D-CAI-10) | "Job title, skill or company" with the placeholder "For example: accountant, nurse, sales" · "Location" with "All of MENA" |
| Search button | "Search", never "Find" or "Go" (D-BCP-21) | "Search" · "بحث" · "Rechercher" |
| h1 | The count, the thing, the scope, in one line; ICU plurals, Western digits (D-BCP-19) | "15 jobs in the Middle East and North Africa" · "12 jobs in the Middle East and North Africa" |
| Status sentence | The same count as a sentence, for screen readers | "15 jobs match these filters." |
| Filter groups | Nouns in sentence case; values one to three words, never truncated | "Work type": "Full-time", "Part-time", "Contract", "Volunteer" · "Workplace": "On-site", "Hybrid", "Remote" |
| Applied chips | The value as the label; the name says what pressing does | "Full-time", named "Remove filter: Full-time" |
| Clear | "Clear filters", never "Reset" (canonical §12.3) | "Clear filters" · "مسح عوامل التصفية" · "Effacer les filtres" |
| Filters button | "Filters" and a count; the hidden text says the count in words | "Filters", hidden "1 filter on"; Arabic "تصفية" |
| Card meta | Facts joined by " · "; pay with its currency code and unit; deadlines as a warning inline status; relative dates only within 7 days, then the date (D-BCP-19) | "Mount Lebanon, Lebanon · Full-time · Hybrid" · "US$1,200–1,800 per month" · "Closes in 4 days" · "Posted 27 October 2026" (Jobs writes "Posted last month" today, JB-2.29) |
| Demo data | Fictional organizations end " (Demo)" (D-BCP-23) | "Byblos Digital Studio (Demo)" |
| Show more | "Show {count} more" (D-CSN-18) | "Show 5 more" |
Arabic from Jobs: the placeholder "مثلًا: محاسب، ممرّض، مبيعات", the deadline "تُغلق بعد 4 أيام", the badge "جهة توظيف موثّقة". Money in Arabic follows Intl: "1,200–1,800 US$" (D-BCP-19).
States
| State | What the page does |
|---|---|
| First load | Server-rendered with the results for the URL's query; nothing waits behind a spinner |
| Loading after a change | The results keep their place; under a second, the region only sets aria-busy="true"; past a second it shows skeleton cards in the final layout with one hidden "Loading jobs…". The h1 and the status sentence change when the results arrive. Focus stays on the control the person changed (D-CSN-29) |
| Filters applied | The h1's count changes, the chips appear under it, the status region announces "12 jobs match these filters.", the URL changes (GET), and Jobs shows an outlined "Save this search" at the end of the h1 row |
| Nothing for a word | The h1 says so ("No jobs for “sales manager”"); in place of the results, a dashed placeholder card: a 64px secondary-container disc with search_off, the title "Try another word", the body "Check the spelling, or use a shorter or more general word, like “sales” or “nurse”.", and one way out, "See all jobs", as the screen's filled lg. While it shows, "Search" drops to outlined, so the screen keeps one filled button. Jobs adds "Save this search" as the quieter action (D-CSN-30, D-BCP-20) |
| Nothing for the filters | The same card: "No jobs match these filters" (as Global ID's directory says "No people match these filters") with "Clear filters" |
| Error | The results could not load: an error banner in the results column that says what happened and offers "Try again"; the search panel and the filters stay usable (D-BCP-20, D-CSN-26) |
| Saved | A saved card or search confirms with a past-tense snackbar and "Undo" (D-CSN-25) |
Accessibility
- Order. The search panel, the h1, the applied chips, then the filters, then the results, in the DOM and on screen. The filter column's "Filters" heading is an h2 after the h1, never before it (JB-1.07, D-BCP-25).
- Search.
role="search"on the form with an accessible name; the keyword fieldtype="search"withenterkeyhint="search"; "Clear search" appears once the field has text and returns focus to the field (D-CAI-11). - Live count. The page's one polite
role="status"region, present at load, says "15 jobs match these filters." (visually hidden) after each change; focus never jumps to the results (canonical §13). - Filters. Each group is a disclosure button with
aria-expandedandaria-controls; the panel it opens is a group named by that button (role="group"witharia-labelledby, as on Accordion); each value is a native checkbox in a 48px label row whose count, with hidden words ("12 jobs"), is part of its label (D-CSN-31, D-CAI-12). - Chips. Removing a chip moves focus to the next chip, or to "Clear filters" after the last one (D-CAI-18).
- Phone sheet. A modal bottom sheet: named by its title, focus moves in and stays, Escape and the scrim close it, focus returns to "Filters"; the "Filters" button's name carries the count ("Filters, 1 filter on") (D-CSN-22, D-CSN-33).
- Cards. One link per card, its title, stretched over the card; the save button sits above it with its own name, "Save job: Frontend Developer (React)" (D-CSN-04, D-CSN-45).
- Paging.
nav aria-label="Pagination"; an unavailable direction is a span witharia-disabled="true"and hidden "Previous page" or "Next page"; "Show {count} more" moves focus to the first new item (D-CSN-18). - Without script. The form submits by GET and the filters are links or a GET form, so the page works before its script loads.
RTL and languages
- The filter column sits at the inline start (the right in Arabic); counts sit at the inline end of their rows; chips read from the right, their close icon at the inline end (D-BCP-30).
- The pager's
chevron_leftandchevron_rightmirror;search,tune, andclosenever do (D-BCP-33). - The search field keeps the page direction, so its icon and its padding stay together, and an English query still reads in its own order inside an Arabic field. A search for values that are Latin only, such as a Global ID number, sets
dir="ltr"on the field's control box (canonical §10.0, D-BCP-30). - Counts and money come from
Intland ICU plural rules with Western digits, never hand-built strings; Arabic has its own plural forms for the count in the h1 (D-BCP-19). - Content-led products keep the language in the path:
/en/jobsand/ar/jobscarry the same query string (D-BCP-28). - French filter values and "Effacer les filtres" wrap at 360px; chips never truncate (D-TYP-15, D-CAI-17).
Do and don't
| Do | Don't |
|---|---|
| The h1 first, with the count | A "Filters" h2 before the h1 (Jobs today, JB-1.07) |
| Apply each filter at once and keep it in the URL | An "Apply filters" button on desktop, or filters that live only in memory |
| Show the applied filters as removable chips with "Clear filters" | Hide which filters are on, or write "Reset" |
| Announce the new count in the status region | Move focus to the results after every change |
| 48px checkbox rows and 48px input chips | 44px chips and rows (Jobs today, JB-2.10) |
| A dashed card with one way out when nothing matches | A bare "No results" line |
| "Show {count} more" or the pager | Infinite scroll, or a strip of numbered pages |
tune on the "Filters" button |
filter_list or a funnel |
| "US$1,200–1,800 per month" | "$1,200 – 1,800 per month" (Jobs today, JB-2.20) |
Best current example
Global Jobs, /en/jobs, at 1440px and 390px (screenshots of the page, the applied filters, the phone filter sheet, and a search with no match; see the Jobs audit):
- The search panel in a white outlined card: "Job title, skill or company" with "For example: accountant, nurse, sales", "Location" with "All of MENA", and the orange "Search"; on phones the three stack and the button spans the width.
- The h1 "15 jobs in the Middle East and North Africa", then the filter column ("Work type", "Workplace", "Experience", "Field", each a disclosure of checkbox rows with counts) beside full-width job cards ("Frontend Developer (React)", "Byblos Digital Studio (Demo)" with its verified mark, "Closes in 4 days").
- With "Full-time" on: "12 jobs in the Middle East and North Africa", the chip "Full-time" with its close icon, "Clear filters", and an outlined "Save this search". On phones: an outlined "Filters" button with
tune, opening a sheet that ends with "Clear filters" and "Show 15 jobs". - With no match: "No jobs for “zzqqxxnomatch”" over a dashed card with "Try another word", "See all jobs" (filled), and "Save this search"; the "Search" button turns outlined.
What it still has to change: the "Filters" heading before the h1 (JB-1.07); the filter column 256 → 272px and card gaps gap-3 → gap-grid (JB-2.16); 44px chips → 48px input chips and popular searches → suggestion chips (JB-2.10); the sheet's surface, radius, and scrim (JB-2.12); the page title style (JB-2.18); the empty-state disc → tile-xl (JB-2.23); pay ranges with the currency code (JB-2.20).
Reference template
reference/templates/listing.html builds the Jobs listing with the search panel, the h1 with the count, the applied chips, the filter column and the phone "Filters" button, job cards, and the pager. It passes the audit gate in light, dark, RTL, and dark RTL at 390px and 1440px.
Related
- Detail page: where a result card leads, and its back link "Back to results".
- Search field, Job card, Pagination.
- Empty, error, and offline and Feedback and status.