React PlumberInstall package

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-intransition: transform 200ms ease-out

    Feedback that starts slowly (ease-in)

    In your code

    Ease-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-clip

    overflow-hidden that breaks sticky

    In your code

    overflow: 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: contain

    A scroll that leaks to the page

    In your code

    At 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.

  • transitiontransition-colors

    Transition on every property

    In your code

    With 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 page

    A long name never shrinks, so it pushes the date off the row.

    The name gives way and cuts; the date stays in.

  • h-16min-h-16

    Text can outgrow its box

    On the page

    The 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-700

    No response to a press

    On the page

    It looks the same when pressed, so you can’t tell it registered.

    It gives under the finger the moment it is pressed.

  • exit: 300msexit: 180ms

    Leaves as slowly as it came

    On the page

    It 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 page

    Flipped 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 page

    The 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 loadingafter 200ms, at least 500ms

    Spinner flashes

    On the page

    A quick load flashes the spinner for an instant: worse than nothing.

    It waits 200ms, and once shown stays long enough to read.

  • onClickonPointerDown

    Menu opens late

    On the page

    The menu waits for the finger to lift.

    It opens the moment the finger goes down, and a drag can pick.

  • tooltip at oncetooltip after 400ms

    Tooltip delay

    On the page

    The pointer only passed over, and a tooltip flashed up.

    It waits until the pointer rests, so passing is quiet.

  • closes on leavea safe triangle while moving to it

    Submenu closes on the way

    On the page

    Moving straight to the submenu crosses another item, and the submenu closes.

    A safe triangle keeps it open while the pointer heads its way.

  • translateY = dragtranslateY = drag past the end, eased

    No limit when dragged

    On the page

    Dragged 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 page

    Read 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 page

    The 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 page

    The 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 page

    One 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 page

    A 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 page

    It 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 page

    A 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 page

    A 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 page

    Opened 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 page

    On 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: contain

    Page locked with overflow: hidden

    On the page

    Locking 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 page

    A 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 page

    The 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 page

    As 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 page

    It 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 page

    It 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 page

    Underlined 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 page

    Screen readers disagree on what a summary is.

    A button with aria-expanded is read the same everywhere.

  • aria-current="page" on two linkson one

    Several current pages

    On the page

    Two 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 page

    It 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 page

    Drawn 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 page

    The 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 page

    These 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 tabwidth kept for the bold

    Selected tab changes size

    On the page

    The 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-auto

    Tabs on several rows

    On the page

    The tabs wrap onto two rows: the order and the selected one are hard to follow.

    One row that scrolls.

  • <div role="tab"> outside the tablistinside role="tablist"

    Tab outside a tab list

    On the page

    Outside the tab list, it is not counted or tied to its neighbours.

    Inside it, it is “3 of 3”.

  • both panels shownhidden on the others

    Several panels showing

    On the page

    Two panels show at once under one selected tab.

    Only the selected tab’s panel.

  • tabindex="0" on every tabtabindex="0" on the selected, -1 on the rest

    Every tab is a Tab stop

    On the page

    Tab 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 page

    It 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 page

    It 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 page

    aria-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 page

    A 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 page

    Tab 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 page

    A 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 page

    Someone 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 page

    A 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 page

    The panel is open and the button says it is closed.

    The state follows the panel.

  • whitespace-nowrap (a sentence)wraps

    Sentence that cannot wrap

    On the page

    A sentence that can’t wrap runs off the side of a narrow screen.

    It wraps at the edge.

  • text-justifytext-left (or hyphens: auto)

    Justified with no hyphens

    On the page

    Justified in a narrow column, the spaces stretch into rivers of white.

    Set ragged, the spaces are even.

  • uppercase (a sentence)sentence case

    A sentence in capitals

    On the page

    A 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-auto

    Page scrolls sideways

    On the page

    One 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-marqueemotion-safe:animate-marquee

    Motion that cannot be turned off

    On the page

    This person asked for less motion, and the banner keeps sliding.

    Asked for less motion, it holds still.

  • font-display: blockfont-display: swap

    Text hidden while its font loads

    On the page

    While 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 page

    The 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 page

    Nothing 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 page

    The 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 page

    A 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 page

    A dark page with a white scrollbar and white form controls.

    The browser’s own parts turn dark too.

  • “Pricing” and “Plans” → /pricingboth “Pricing”

    One place, two names

    On the page

    Two 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 page

    Out 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 page

    The 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 peeking

    More to the side, and no sign of it

    On the page

    The 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 page

    A 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 toppointer-events: none on the overlay

    Something sits on top of this

    On the page

    An invisible layer sits on the button: the press lands on it (dashes).

    The layer lets presses through.