About this set
Pill-shaped filter tabs that carry a count, All, Open, In review and Archived, above a task list, so people can see how many items each filter holds before clicking and an empty filter says so up front. Use it for issue trackers, inboxes, order lists and any list with a handful of fixed statuses. The selected pill turns dark navy with its count on a translucent white chip, and the others keep a light outline that darkens on hover. Each list row has a coloured status dot, a title and a meta line, and the Archived panel shows an empty-state message. The counts match the rows in each list. The plain CSS version is a radio group that wraps onto a second line on narrow screens, with :has() picking the list. The Bootstrap version is a .nav-pills of rounded .nav-link buttons with a .badge.rounded-pill for each count, driven by the Tab plugin. The Tailwind version styles the count with group-aria-selected utilities and uses a small WAI-ARIA tabs script.
What’s included
- Pill tabs with a count chip in each
- Empty filter shows a zero count and an empty-state message
- Pills wrap onto a second line on narrow screens
- Bootstrap version uses .nav-pills with .badge counts
- Count chips and meta text darkened to pass 4.5:1
Accessibility
In the plain CSS version the tabs are a radio group, not ARIA tabs: the radios sit inside an element with role="radiogroup" and an aria-label, each takes its name from its visible label, Tab enters the group and the arrow keys move the selection (radios have no Home or End). In the Bootstrap and Tailwind versions they follow the WAI-ARIA tabs pattern: role tablist, tab and tabpanel, aria-selected, aria-controls, a roving tabindex, arrow keys plus Home and End. Each tab's name includes its count, for example Open 2. Focus shows a 2px indigo outline and the colour transitions are removed under prefers-reduced-motion.
Customise it
Change the selected navy #16203a and the chip colour #f2f4f9 in the .tabs label rules (plain CSS), --bs-nav-pills-link-active-bg and the .badge background (Bootstrap), or --color-tab-ink and --color-tab-chip (Tailwind).

















