What it checks
States and behaviour
How the page behaves, including press feedback, menus, motion you can interrupt, and loading and empty states.
transition: transform 200ms ease-in→transition: transform 200ms ease-outFeedback that starts slowly (ease-in)
In your codeEase-in starts slowly: the press seems to lag behind the hand.
Ease-out moves at once and settles: it answers the hand.
overflow-hidden (on the panel)→overflow-clipoverflow-hidden that breaks sticky
In your codeoverflow: hidden makes the panel a scroll box, so the sticky header inside scrolls away with the list.
overflow: clip still cuts the corners and lets the header stick.
(the list scrolls the page at its end)→overscroll-behavior: containA scroll that leaks to the page
In your codeAt the end of the list, the scroll carries on into the page behind it.
The scroll stops at the list’s edge; the page stays put.
transition→transition-colorsTransition on every property
In your codeWith every property listed, a change of size slides too.
Only the colour moves; the size changes at once.
<span>{name}</span>→<span class="min-w-0 truncate">{name}</span>Text can never be cut off
On the pageA long name never shrinks, so it pushes the date off the row.
The name gives way and cuts; the date stays in.
h-16→min-h-16Text can outgrow its box
On the pageThe box is fixed at 64px, so the third line spills out below it.
A least height: the box grows with its words.
(nothing on :active)→active:scale-[.97] active:bg-indigo-700No response to a press
On the pageIt looks the same when pressed, so you can’t tell it registered.
It gives under the finger the moment it is pressed.
exit: 300ms→exit: 180msLeaves as slowly as it came
On the pageIt leaves as slowly as it came, when people are already done with it.
Out faster than in: it gets out of the way.
@keyframes (runs to its end)→transition (turns round where it is)Can’t reverse midway
On the pageFlipped back halfway, it first finishes, then comes back: a full trip for nothing.
A transition turns round from wherever it is.
h-10 (skeleton)→h-16 (as tall as the card)Skeleton is the wrong size
On the pageThe skeleton is shorter than what arrives, so everything under it jumps (dashes: the real card).
The same size as the content: nothing moves when it lands.
spinner while loading→after 200ms, at least 500msSpinner flashes
On the pageA quick load flashes the spinner for an instant: worse than nothing.
It waits 200ms, and once shown stays long enough to read.
onClick→onPointerDownMenu opens late
On the pageThe menu waits for the finger to lift.
It opens the moment the finger goes down, and a drag can pick.
tooltip at once→tooltip after 400msTooltip delay
On the pageThe pointer only passed over, and a tooltip flashed up.
It waits until the pointer rests, so passing is quiet.
closes on leave→a safe triangle while moving to itSubmenu closes on the way
On the pageMoving straight to the submenu crosses another item, and the submenu closes.
A safe triangle keeps it open while the pointer heads its way.
translateY = drag→translateY = drag past the end, easedNo limit when dragged
On the pageDragged past its end, the sheet follows the finger all the way.
Past the end it moves less and less, then springs back.
<nav>Home / Docs / Guides</nav>→<nav><ol><li>Home</li>…</ol></nav>Breadcrumbs not in an ordered list
On the pageRead as loose words, nobody hears how deep they are.
An ordered list says how many steps, and in which order.
<a>Guides</a>→<a aria-current="page">Guides</a>Trail does not mark this page
On the pageThe last step is read like the others: nobody hears where they are.
aria-current marks this page.
<span>/</span>→<span aria-hidden="true">/</span>Dividers read out loud
On the pageThe slashes are read out between every step.
Hidden from screen readers, they stay for the eye.
<a><button>Delete</button></a>→<a>…</a><button>Delete</button>A button inside a link
On the pageOne press, two meanings: browsers and screen readers each pick a different one.
The link and the button are siblings: each press means one thing.
<section aria-roledescription="carousel">→<section aria-roledescription="carousel" aria-label="Featured plans">Carousel with no name
On the pageA screen reader says “carousel” and not what it shows.
Named, it says what the slides are.
<dialog>→<dialog aria-labelledby="dlg-title">Dialog with no name
On the pageIt opens and says only “dialog”.
It says what it asks as it opens.
<div role="dialog">→<dialog> opened with showModal()A div playing a dialog
On the pageA div playing a dialog: the third Tab lands on the page behind.
A real dialog keeps focus inside, closes on Esc and gives focus back.
<dialog aria-modal="true">→<dialog>aria-modal on a real modal
On the pageA modal <dialog> already is one; the attribute only risks going stale.
The element says it by itself.
dialog.show()→dialog.showModal()Says modal, is not
On the pageOpened with show(), it says modal but Tab walks into the page behind.
Opened with showModal(), the page behind is out of reach.
(no close button)→<button aria-label="Close">×</button>Dialog with no way out
On the pageOn a touch screen or a screen reader there is nothing to press to leave.
A close button: a way out for everyone.
body { overflow: hidden }→scrollbar-gutter: stable; overscroll-behavior: containPage locked with overflow: hidden
On the pageLocking the page takes its scrollbar away, and everything jumps sideways (dashes: where it was).
The gutter is kept, so nothing moves when the dialog opens.
dialog { display: grid }→dialog[open] { display: grid }Closed dialog still showing
On the pageA display on dialog overrides its closed state: the closed dialog still shows.
Scoped to [open], it shows only when open.
<div role="menu"><div>Rename</div>…→<div role="menu"><div role="menuitem">Rename</div>…Menu whose items are not menu items
On the pageThe items are not menu items, so the menu is announced empty.
Each is a menuitem: counted and moved through with arrows.
<nav role="menubar">→<nav><ul><li><a>Site navigation as a menu
On the pageAs a menu, it leaves the Tab order and promises arrow keys.
Site navigation is a list of links.
<button>Filters</button>→<button aria-expanded="true">Filters</button>Opens something, does not say if open
On the pageIt opened a panel, and nothing says so.
aria-expanded says it is open.
<button role="switch">→<button role="switch" aria-checked="true">No on or off said
On the pageIt is announced and never whether it is on.
aria-checked says on or off.
<a class="active">Pricing</a>→<a aria-current="page">Pricing</a>Navigation does not mark this page
On the pageUnderlined for the eye; a screen reader reads it like any link.
aria-current says where you are, and is the hook to style it.
<details><summary>Products</summary>→<button aria-expanded="false">Products</button>Submenu built on details
On the pageScreen readers disagree on what a summary is.
A button with aria-expanded is read the same everywhere.
aria-current="page" on two links→on oneSeveral current pages
On the pageTwo links both say “current page”: only one can be where you are.
One current page.
<div role="tablist">→<div role="tablist" aria-label="Billing period">Tabs with no name
On the pageIt says “tab list”, not what the tabs switch.
Named for what they switch.
<button role="tab">→<button role="tab" aria-selected="true">No tab says it is selected
On the pageDrawn as selected, never said.
aria-selected says which panel is showing.
<div role="tabpanel">→<div role="tabpanel" aria-labelledby="tab-monthly">Panel with no name
On the pageThe panel is announced with no words.
It takes its tab’s words.
<a role="tab" href="/monthly">→<a href="/monthly" aria-current="page">Tabs that are page links
On the pageThese go to other pages, but say “tab”: people expect a panel and arrow keys.
Links that look like tabs are navigation.
font-semibold on the selected tab→width kept for the boldSelected tab changes size
On the pageThe selected tab turns bold and grows, so every tab after it moves.
Room for the bold is kept: the tabs stay put.
flex flex-wrap (tabs)→flex overflow-x-autoTabs on several rows
On the pageThe tabs wrap onto two rows: the order and the selected one are hard to follow.
One row that scrolls.
<div role="tab"> outside the tablist→inside role="tablist"Tab outside a tab list
On the pageOutside the tab list, it is not counted or tied to its neighbours.
Inside it, it is “3 of 3”.
both panels shown→hidden on the othersSeveral panels showing
On the pageTwo panels show at once under one selected tab.
Only the selected tab’s panel.
tabindex="0" on every tab→tabindex="0" on the selected, -1 on the restEvery tab is a Tab stop
On the pageTab stops on every tab before it reaches the panel.
One stop for the set; arrows move between tabs.
<div role="toolbar">→<div role="toolbar" aria-label="Text formatting">Toolbar with no name
On the pageIt says “toolbar” without saying what it is for.
Named for its job.
<div role="menubar">→<div role="menubar" aria-label="Editor">Menu bar with no name
On the pageIt says “menu bar” without saying what it belongs to.
Named, it is clear which menus these are.
<button aria-pressed="false">Save</button>→<button>Save</button>On/off state on an action
On the pagearia-pressed makes an action sound like a switch.
An action is a plain button.
<progress value="40" max="100">→<progress aria-label="Uploading report.pdf" …>Progress of nothing
On the pageA screen reader says “40 percent” and not of what.
Named, it says what is uploading.
<progress tabindex="0">→<progress>Progress bar takes focus
On the pageTab stops on a bar that does nothing.
Tab goes from Cancel to Done.
<div role="progressbar">→<progress value="40" max="100">A div playing a progress bar
On the pageA div with a role needs its value kept right by hand; this one never was.
<progress> says its value by itself.
<div class="spinner" />→<div role="status">Loading invoices…</div>Spinner that says nothing
On the pageSomeone who cannot see it never learns anything is loading.
A status message says it.
<div aria-expanded="false">→<button aria-expanded="false">Open/closed on a plain box
On the pageA plain box can’t be pressed from the keyboard, and its state is never read.
A button carries the state and the keys.
aria-expanded="false" (panel open)→aria-expanded="true"Says closed, is not
On the pageThe panel is open and the button says it is closed.
The state follows the panel.
whitespace-nowrap (a sentence)→wrapsSentence that cannot wrap
On the pageA sentence that can’t wrap runs off the side of a narrow screen.
It wraps at the edge.
text-justify→text-left (or hyphens: auto)Justified with no hyphens
On the pageJustified in a narrow column, the spaces stretch into rivers of white.
Set ragged, the spaces are even.
uppercase (a sentence)→sentence caseA sentence in capitals
On the pageA whole sentence in capitals has no word shapes: it is read letter by letter.
In sentence case the words read at a glance.
w-[420px] (a table)→max-w-full overflow-x-autoPage scrolls sideways
On the pageOne wide table pushes past the phone’s edge, and the whole page scrolls sideways.
The table scrolls in its own box; the page fits.
animate-marquee→motion-safe:animate-marqueeMotion that cannot be turned off
On the pageThis person asked for less motion, and the banner keeps sliding.
Asked for less motion, it holds still.
font-display: block→font-display: swapText hidden while its font loads
On the pageWhile the font loads, the words are invisible (up to three seconds).
The words show at once in a fallback, then switch.
(no preconnect)→<link rel="preconnect" href="https://fonts.example">Cold start to another site
On the pageThe connection to the other site starts only when the font is asked for.
Started with the page, it is ready when needed.
<script src="app.js">→<script src="app.js" defer>Scripts that hold the page
On the pageNothing is drawn until every script has loaded and run.
Deferred, the page draws first.
(no <title>)→<title>Pricing · Atlas</title>Page with no title
On the pageThe tab, the history and a screen reader’s first words are the address.
A title says what the page is.
(no skip link)→<a href="#main" class="skip">Skip to content</a>No way past the navigation
On the pageA keyboard user tabs through every link on every page to reach the content.
The first Tab offers a way straight to it.
(no color-scheme)→:root { color-scheme: dark }Dark page, light browser parts
On the pageA dark page with a white scrollbar and white form controls.
The browser’s own parts turn dark too.
“Pricing” and “Plans” → /pricing→both “Pricing”One place, two names
On the pageTwo names for one place: in a list of links they look like two places.
One place, one name.
<button>Edit</button>→<button aria-label="Edit Ana">Edit</button>Many buttons, one name
On the pageOut of their rows, every button is just “Edit”.
Each says whose row it edits.
aria-label="Muted" aria-pressed="true"→aria-label="Mute" aria-pressed="true"State said twice
On the pageThe label says the state and so does aria-pressed: heard twice.
The label names the action; the state is said once.
overflow-x-auto (cut on a gap)→a faded edge, the next card peekingMore to the side, and no sign of it
On the pageThe row ends on a gap: nothing says there is more to the side.
A card peeks in under a fade.
<div class="overflow-auto">→<div class="overflow-auto" tabindex="0" aria-label="Install steps">Scrolls for the mouse only
On the pageA keyboard can’t get into the box, so what’s below is out of reach.
A stop of its own: arrows scroll it.
an empty overlay on top→pointer-events: none on the overlaySomething sits on top of this
On the pageAn invisible layer sits on the button: the press lands on it (dashes).
The layer lets presses through.