Skip to content
OAIT Design System

Design system / Components

Job card

One job posting in Global Jobs' results: the employer, the title as the card's one link, where, how much, and how long it stays open. Product component (Global Jobs).

When to use

  • Search results and listings on Global Jobs (/jobs, a company's open jobs), one card per posting in the results grid (the listing with search and filters pattern).
  • Saved jobs, where every card shows its save toggle pressed.
  • A company's page, listing its open jobs.

When not to use

Situation Use instead
The job's own page (description, requirements, how to apply) The detail page pattern, with the sticky action bar on phones.
A company in a list of employers A card with the organization avatar and the company's name as the title link.
A dense table of postings for an employer's dashboard The data table.
Anything that is not a job (a course, an event) The family card: the job card's salary and deadline lines belong to jobs.

Anatomy

  1. Card (.oa-card.oa-job-card, an <article>): the outlined card, 24px corners (rounded-card), padding 20px, 24px from 640px; clickable through its one link.
  2. Header (.oa-card__header): the organization avatar (48px, 16px corners: the logo, or two initials on surface-container-high); the company line (__company, body-md 500, on-surface-variant) with the verified mark (__verified, 16px filled verified in success) and the hidden words "Verified employer"; the save toggle (.oa-card__actions, a 48px icon button, above the link).
  3. Title (.oa-card__title, an h2 or h3, title-md): the job title as .oa-title-link--stretched, whose ::after covers the card.
  4. Meta (__meta, body-md, on-surface-variant): a 16px location_on and "place · work type · workplace".
  5. Salary (__salary, title-sm): the range, then its unit (__unit, body-md, on-surface-variant).
  6. Footer (.oa-card__footer): a hairline, then body-md meta: when it was posted; the deadline in the warning ink with a 16px schedule (inline status); the posting's language as a neutral status chip when it differs from the page's.

Variants

Variant Use for Key tokens
Default A posting in the results --color-card-outlined-container, --color-outline-variant edge, --radius-card
Saved A posting the person saved the toggle aria-pressed="true", bookmark filled (.oa-icon--filled)
Closing soon A deadline within 7 days .oa-inline-status--warning: --color-warning ink and schedule (never color alone)
In another language The posting's language is not the page's .oa-status-chip--neutral (32px, label-md): "In Arabic" on English pages, "باللغة الإنجليزية" on Arabic pages; the title carries the posting's lang
Unverified employer The company has not been verified no verified mark and no hidden words

Sizes

One size. The card fills its grid cell: one column on phones, then the results grid's columns; it grows with its content and the footer stays at the bottom of a stretched row.

Part Height Padding Type style Icon size
Card content 20px, 24px from 640px (p-card, sm:p-card-medium) — —
Avatar 48px (--size-tile-md), 16px corners — two initials in label-md, from the avatar recipe —
Company line — — body-md 500 verified 16px (--size-icon-xs)
Save toggle 48px (--size-touch-target) — — 24px
Title — — title-md —
Meta — — body-md location_on 16px
Salary — — title-sm; unit body-md —
Footer — 16px between the hairline and the text body-md; chip label-md (32px high) schedule 16px

Tokens

Part Property Token
Card background, edge, corners --color-card-outlined-container, 1px --color-outline-variant, --radius-card
Card, mouse over the title link edge, shadow --color-outline, --shadow-elevation-3 over --duration-short-3
Card, title link pressed layer the content color at --opacity-state-pressed, at once
Company, meta, unit, footer text --color-on-surface-variant
Title, salary text --color-on-surface
Verified mark icon --color-success, filled
Deadline ink --color-warning (the inline status)
Language chip fill, text the neutral status chip: --color-surface-container-high, --color-on-surface
Save toggle state layer --opacity-state-hover, --opacity-state-pressed; pressed glyph filled
Focus ring --size-focus-ring solid --color-focus-ring, --size-focus-offset, on the link's ::after with --radius-card

States

State What changes
Enabled The outlined card at rest, no shadow.
Hover (mouse on the title link) The edge turns outline and the card takes shadow-elevation-3 over --duration-short-3; nothing moves, lifts, or scales (D-CSN-04, D-SEM-15).
Focus-visible The ring on the card's corners, drawn by the link's ::after; the link's own outline is transparent.
Pressed The 12% layer of the content color (--opacity-state-pressed) over the card, at once.
Saved The toggle is pressed (aria-pressed="true") with the filled bookmark; its name does not change.
Disabled None: the card has no disabled state; a posting that closes leaves the results.
Loading None on the card: a results list that loads after the page shows skeleton cards, never a spinner per card.
Error None on the card; the page shows the banner.

Behavior

  • One link. The title is the card's only link; its ::after covers the card, so a click anywhere opens the job. The save toggle sits above the link (.oa-card__actions, --z-raised) and never opens the job (canonical §10.10).
  • Save. Signed in, the toggle saves or unsaves at once and confirms in a snackbar: "Job saved", "Removed from saved jobs". Signed out, it opens the "Save this job" dialog: "Sign in or create a free account. We’ll save it for you as soon as you’re in."
  • Relative dates. "Posted 3 days ago" up to 7 days, then the date ("Posted 14 September 2026"). The deadline counts down through Global Jobs' plural message while 7 days or fewer remain ("Closes in 4 days", "Closes tomorrow", "Closes today"), and before that shows the date ("Apply by 30 November 2026") (canonical §14.3).
  • Responsive. The grid goes from one column to the results grid's columns; the card's parts wrap and never truncate the title.
  • Motion. Only the hover shadow and the state layer fade, over --duration-short-3 on --ease-standard; nothing moves under reduced motion either way.

Accessibility

  • Element. An <article> per posting; the title is a heading at the results' level (h2 under the page's h1 with the count); the link's name is the job title.
  • Save toggle. A <button aria-pressed> named "Save job: {title}", so each of the 15 toggles on a page says which job it saves; its glyph is decorative.
  • Verified. The mark is aria-hidden; "Verified employer" is visually hidden text after the company name.
  • Keyboard. Tab reaches the save toggle, then the title link (DOM order: header, then title); Enter opens the job, Space or Enter toggles the save.
  • Target size. The whole card is the link's target; the toggle is 48px.
  • Contrast. On the outlined container on-surface-variant is 9.33:1 (light) and 10.87:1 (dark), warning 6.45:1 and 10.94:1, success 6.73:1 and 10.82:1; the deadline also has its icon and its words.
  • Language. A posting's title, and anything quoted from it, carries the posting's lang (and dir when it differs from the page), so screen readers switch voices.

RTL and languages

  • The card mirrors: the avatar at the inline start, the toggle at the inline end, the icons before their words.
  • Names stay as entered: an English company name on an Arabic page sits in <bdi lang="en" dir="ltr">; an English title gets lang="en" dir="ltr".
  • Salary ranges are one isolated run: "US$1,200–1,800" in English, <bdi dir="ltr">"1,200–1,800 US$"</bdi> in Arabic, with an en dash and no spaces (D-BCP-19, formatRange).
  • French "Publiée il y a 3 jours" and "Ferme dans 4 jours" fit the footer at 360px on two lines; the footer wraps by item, never inside one.

Content

Part English Arabic French
Hidden verified words Verified employer جهة توظيف موثّقة Employeur vérifié (native review)
Save toggle name Save job: {title} حفظ الوظيفة: {title} Enregistrer l’offre : {title} (native review)
Salary unit per hour · per month في الساعة · في الشهر par heure · par mois (native review)
No salary Salary not shown (native review) (native review)
Posted Posted 3 days ago نُشرت قبل 3 أيام (native review) Publiée il y a 3 jours (native review)
Deadline Closes in 4 days · Closes tomorrow · Closes today · Apply by {date} تُغلق بعد 4 أيام (native review) Ferme dans 4 jours (native review)
Language chip In Arabic باللغة الإنجليزية (an English posting on an Arabic page) En arabe (native review)
  • Meta line: place, work type, workplace, joined by " · ": "Mount Lebanon, Lebanon · Full-time · Hybrid", "Remote (Lebanon) · Part-time".
  • Titles as the employer wrote them, never cut; demo employers carry "(Demo)" in their name ("Byblos Digital Studio (Demo)").
  • Salary: the currency code with the range ("US$1,200–1,800"), the unit in words. When the employer gives none, the line reads "Salary not shown" in body-md on-surface-variant (Global Jobs' wording), never "Not specified".

Do and don't

Do Don't
Make the title the one link and put the save toggle above it. Wrap the card in an <a>, or put a link inside the link.
Name the toggle "Save job: {title}". Give 15 toggles the same name "Save".
Show the deadline with its icon and words. Color the date orange or red without words.
Add the language chip only when the posting's language differs from the page's. Mark every English posting "In English" on an English page.
Raise the card with shadow-elevation-3 and the outline edge on hover. Lift, scale, or move the card.

Code

HTML (reference CSS)

The default card:

<article class="oa-card oa-job-card">
  <div class="oa-card__header">
    <span class="oa-avatar oa-avatar--org" aria-hidden="true">BD</span>
    <p class="oa-job-card__company"><bdi lang="en" dir="ltr">Byblos Digital Studio (Demo)</bdi><span class="oa-icon oa-job-card__verified" aria-hidden="true" translate="no">verified</span><span class="oa-visually-hidden">Verified employer</span></p>
    <div class="oa-card__actions">
      <button class="oa-icon-btn" type="button" aria-pressed="false" aria-label="Save job: Frontend Developer (React)"><span class="oa-icon" aria-hidden="true" translate="no">bookmark</span></button>
    </div>
  </div>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#pr-job">Frontend Developer (React)</a></h3>
  <p class="oa-job-card__meta"><span class="oa-icon" aria-hidden="true" translate="no">location_on</span><span>Mount Lebanon, Lebanon · Full-time · Hybrid</span></p>
  <p class="oa-job-card__salary">US$1,200–1,800 <span class="oa-job-card__unit">per month</span></p>
  <div class="oa-card__footer">
    <span>Posted 3 days ago</span>
    <span class="oa-inline-status oa-inline-status--warning"><span class="oa-icon oa-inline-status__icon" aria-hidden="true" translate="no">schedule</span>Closes in 4 days</span>
  </div>
</article>

An Arabic posting on an English page: its title carries lang="ar" dir="rtl" and the chip names its language:

<article class="oa-card oa-job-card">
  <div class="oa-card__header">
    <span class="oa-avatar oa-avatar--org" aria-hidden="true">HL</span>
    <p class="oa-job-card__company"><bdi lang="en" dir="ltr">Harbour Line Logistics (Demo)</bdi><span class="oa-icon oa-job-card__verified" aria-hidden="true" translate="no">verified</span><span class="oa-visually-hidden">Verified employer</span></p>
    <div class="oa-card__actions">
      <button class="oa-icon-btn" type="button" aria-pressed="false" aria-label="Save job: ⁧محاسب مبتدئ⁩"><span class="oa-icon" aria-hidden="true" translate="no">bookmark</span></button>
    </div>
  </div>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#pr-job-accountant" lang="ar" dir="rtl">محاسب مبتدئ</a></h3>
  <p class="oa-job-card__meta"><span class="oa-icon" aria-hidden="true" translate="no">location_on</span><span>Beirut, Lebanon · Full-time</span></p>
  <p class="oa-job-card__salary">US$600–800 <span class="oa-job-card__unit">per month</span></p>
  <div class="oa-card__footer">
    <span>Posted 2 days ago</span>
    <span class="oa-status-chip oa-status-chip--neutral">In Arabic</span>
  </div>
</article>

Tailwind CSS v4

The card is the family's clickable outlined card; the job card adds only its lines:

<article class="relative isolate flex min-w-0 flex-col gap-stack rounded-card border border-outline-variant bg-card-outlined-container p-card text-on-surface transition-[box-shadow,border-color] duration-short-3 ease-standard hover:border-outline hover:shadow-elevation-3 before:absolute before:-inset-px before:-z-1 before:rounded-[inherit] before:bg-current before:opacity-0 has-[a:active]:before:opacity-(--opacity-state-pressed) sm:p-card-medium">
  <div class="flex items-center gap-4">
    <span class="grid size-12 shrink-0 place-items-center rounded-box bg-surface-container-high text-label-md text-on-surface uppercase" aria-hidden="true">BD</span>
    <p class="flex min-w-0 flex-auto items-center gap-1.5 text-body-md font-medium text-on-surface-variant"><bdi lang="en" dir="ltr">Byblos Digital Studio (Demo)</bdi><!-- verified, 16px, text-success --><span class="sr-only">Verified employer</span></p>
    <!-- the save toggle: a 48px icon button, relative z-10, -me-2 -my-2 -->
  </div>
  <h3 class="text-title-md"><a class="inline-block rounded-8px no-underline underline-offset-4 hover:underline after:absolute after:inset-0 after:rounded-card focus-visible:outline-transparent focus-visible:after:outline-3 focus-visible:after:outline-offset-2 focus-visible:after:outline-focus-ring" href="/en/jobs/frontend-developer-react">Frontend Developer (React)</a></h3>
  <p class="flex items-start gap-2 text-body-md text-on-surface-variant"><!-- location_on, 16px -->Mount Lebanon, Lebanon · Full-time · Hybrid</p>
  <p class="text-title-sm text-on-surface">US$1,200–1,800 <span class="text-body-md text-on-surface-variant">per month</span></p>
  <div class="mt-auto flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-outline-variant pt-4 text-body-md text-on-surface-variant">
    <span>Posted 3 days ago</span>
    <!-- Closes in 4 days: the warning inline status -->
  </div>
</article>

Global Jobs is a shadcn product: shadcn's card role is card-outlined-container through the bridge, and lucide-react gives way to the family icon (canonical §2.12). The article and the title link are the card's clickable recipe: the hover edge and shadow, the pressed layer, and the ring on the link's ::after (canonical §10.10).

React

Prop Type Default Description
job { id: string; title: string; titleLang?: string; company: { name: string; initials: string; logoUrl?: string; verified: boolean }; place: string; workType: string; workplace?: string; salary?: { min: number; max: number; currency: string; unit: "month" | "hour" }; postedAt: string; closesAt?: string; lang: string } — The posting. titleLang and lang drive the title's lang and the language chip.
href string — The job's page; the title links to it.
saved boolean false The toggle's pressed state.
onSaveChange (saved: boolean) => void — Called by the toggle; the page shows the snackbar.
headingLevel 2 | 3 2 The title's heading level.
pageLang string — The page's language, to decide the language chip.
<JobCard
  job={job}
  href={`/${locale}/jobs/${job.slug}`}
  saved={savedIds.has(job.id)}
  onSaveChange={(next) => toggleSaved(job.id, next)}
  pageLang={locale}
/>