React PlumberInstall package

What it checks

Accessible and correct

Whether everyone can use the page, including names for screen readers, contrast, tap target size and forms that say what they need.

  • focus:outline-nonefocus-visible:ring-2

    Focus outline removed

    In your code

    Tabbed to, the button shows nothing: keyboard users lose their place (dashes: where the ring belongs).

    A ring on keyboard focus.

  • hover:bg-indigo-50@media (hover: hover) { … }

    Hover styles that stick on touch

    In your code

    Tapped on a phone, the row keeps its hover colour after the finger lifts.

    Hover styles only where there is a pointer to hover.

  • mr-2 (icon)me-2 (icon)

    Left and right instead of start and end

    In your code

    In a right-to-left page, the icon’s space stays on the right and it touches the words.

    margin-inline-end follows the reading direction.

  • pb-[env(safe-area-inset-bottom)]pb-[env(safe-area-inset-bottom,16px)]

    Safe area with no fallback

    In your code

    Without a fallback the padding is lost, and the bar sits under the home indicator.

    A fallback keeps room above it.

  • h-screen (100vh)h-dvh

    100vh that jumps on phones

    In your code

    100vh counts the space under the browser’s toolbar: the button is hidden behind it.

    dvh follows the visible height.

  • text-gray-400text-gray-500 (Lc 60+)

    Hard to read

    On the page

    Light grey on white: too faint to read comfortably.

    Dark enough for its size.

  • disabled:opacity-40disabled:bg-gray-100 disabled:text-gray-500

    Disabled text unreadable

    On the page

    Opacity fades the words with the button: you can’t read what is unavailable.

    A quiet fill with readable words.

  • size-5 (icon button)size-5, tap area 44px

    Too small to tap

    On the page

    A 20px icon is a 20px target: hard to hit with a thumb (dashes: what a finger needs).

    The tap area grows to 44px; the icon stays 20px.

  • text-sm (14px) in a fieldtext-base (16px)

    Zooms on iPhone

    On the page

    Under 16px, Safari zooms the page in when the field is tapped, and stays zoomed.

    At 16px the page stays put.

  • labels at fixed positionslabels nudged apart

    Words run into other words

    On the page

    Two labels run into each other and read as one.

    Moved apart, each reads on its own.

  • (default tap highlight)-webkit-tap-highlight-color: transparent

    Tap flashes grey on phones

    On the page

    Tapped on a phone, a grey box flashes over the custom control.

    No flash: the control’s own pressed state answers.

  • <button>×</button><button aria-label="Close">×</button>

    No name for screen readers

    On the page

    Only its role is heard: “button”.

    It says what it does.

  • <img src="IMG_2041.jpg"><img src="…" alt="The team on the ridge at sunrise">

    Image with no alt

    On the page

    A screen reader reads out the file name.

    Alt says what the picture is for.

  • alt="Image of a team"alt="The team on the ridge at sunrise"

    Alt says it is an image

    On the page

    “Image of” is said, then “image” again.

    Only what it shows.

  • <svg><svg role="img" aria-label="Signups rose 20% this month">

    Graphic with no description

    On the page

    The chart is just “image”.

    It says what the chart shows.

  • <button tabindex="1">Send</button><button>Send</button>

    Jumps the tab order

    On the page

    tabindex="1" sends focus to Send before the fields it sends.

    Tab follows the page.

  • <button tabindex="0">Save</button><button>Save</button>

    tabindex it does not need

    On the page

    A button is already in the Tab order.

    Nothing to add.

  • <div aria-hidden="true"><a href>…<div aria-hidden="true" inert>

    Hidden, but takes focus

    On the page

    Focus lands inside something announced as nothing.

    inert takes it out of the Tab order too.

  • <button role="presentation"><button>

    Control told to be nothing

    On the page

    “Save”, and nothing says it can be pressed.

    Its role is back.

  • <div aria-label="Pro plan"><section aria-label="Pro plan">

    Label on a plain box

    On the page

    A plain box has no name to give; the label is never read.

    On an element with a role, it is.

  • aria-label="Submit form"aria-label="Send" (or none)

    Label hides the words shown

    On the page

    Someone says the word they see, and nothing answers.

    The name holds the visible words.

  • aria-label="Close button"aria-label="Close"

    Role said twice

    On the page

    The role is in the label and said again.

    The screen reader adds the role.

  • <a>Read more</a><a>Read more<span class="sr-only"> about pricing</span></a>

    Same link text, different places

    On the page

    In a list of links, they are all “Read more”.

    Each says where it goes.

  • <h3>Plans</h3><h2>Plans</h2>

    Heading level skipped

    On the page

    Moving by headings, people hear a level missing.

    Each level follows the last.

  • <h1>Plans</h1><h2>Plans</h2>

    More than one h1

    On the page

    With two h1s, neither says what the page is.

    One h1 names the page.

  • <main>FAQ</main><section>FAQ</section>

    More than one main

    On the page

    “Skip to main content” has two places to go.

    One main.

  • <nav><nav aria-label="Footer">

    Navigation with no name

    On the page

    Every nav is “navigation”.

    Named, each says which.

  • <iframe src="…"><iframe src="…" title="Product tour">

    Frame with no title

    On the page

    A frame is announced by its address.

    A title says what is in it.

  • <iframe scrolling="no"><iframe> (scrolls)

    Frame cannot scroll

    On the page

    Zoomed in, the frame’s content no longer fits and can’t be scrolled to.

    It scrolls when it needs to.

  • <td>Mar</td><th scope="col">Mar</th>

    Table with no header cells

    On the page

    Each cell is read with nothing to say what it is.

    Header cells give it its row and column.

  • <summary><h3>Billing</h3></summary><summary>Billing</summary>

    Heading inside a summary

    On the page

    Some browsers treat summary as a button, and the heading stops being one.

    The summary holds plain words.

  • <button role="button">Save</button><button>Save</button>

    Says what the tag already says

    On the page

    The tag already says it.

    One less thing to keep true.

  • <li role="button">Private</li><li><button>Private</button></li>

    Role replaces the structure

    On the page

    A role on the item takes it out of the list: the count is wrong.

    The control goes inside the item.

  • <div role="button">Save</div><button>Save</button>

    A div playing a button

    On the page

    The div says “button” and Tab never reaches it.

    A button takes focus and Enter by itself.

  • <input type="email"><input type="email" autocomplete="email">

    Field the browser cannot fill

    On the page

    The browser can’t tell what the field is for.

    It offers the saved address.

  • <form>…<form>…</form>…</form><form>……</form>

    Form inside a form

    On the page

    Which form a button submits depends on how the page was built.

    One form per submit.

  • <button>Show</button><button type="button">Show</button>

    Helper button submits the form

    On the page

    Pressing “Show password” sends the half-filled form.

    It only does its own job.

  • (no submit button)<button type="submit">Subscribe</button>

    Form with no submit button

    On the page

    Enter does nothing, and a screen reader finds no way to send it.

    A submit button.

  • <fieldset><fieldset><legend>Shipping address</legend>

    Group with no legend

    On the page

    “group”, and never what about.

    The legend names it.

  • <input id="email"><input id="email" name="email">

    Field the form does not send

    On the page

    A form sends only named fields: what is typed here is left behind.

    Named, it is sent.

  • <input type="password"> (no form)<form><input type="password" autocomplete="current-password">

    Password outside a form

    On the page

    Password managers look for a form, and find none.

    Inside a form, the key is offered.

  • <form>…search…</form><search><form>…</form></search>

    Search with no landmark

    On the page

    People who jump by landmarks can’t jump to search.

    A search landmark.

  • <form><form aria-label="Newsletter">

    Form with no name

    On the page

    Every form is “form”.

    Named, it says which.

  • <form method="get"><form method="post">

    Password sent in the address

    On the page

    The password lands in the address bar, the history and the server’s logs.

    Sent in the body, it stays out of the address.

  • resize-none h-16resize-y min-h-16

    Text box that cannot grow

    On the page

    A long message is written through a two-line window.

    It can be pulled taller.

  • <label>Email</label><input><label for="email">Email</label><input id="email">

    Label tied to nothing

    On the page

    The label is tied to nothing: the field has no name.

    Tied, the label names it and clicking it focuses the field.

  • label mb-5label mb-1.5

    Label nearer the field above

    On the page

    The label sits nearer the field above it than its own.

    Close to its own field.

  • aria-invalid="true"aria-invalid="true" aria-describedby="email-error"

    Error with no message tied to it

    On the page

    It says “invalid”, not what is wrong.

    The message is read with it.

  • <label>Email</label><label>Email <span>(required)</span></label>

    Required, and does not say so

    On the page

    Nothing says it’s required until the form refuses.

    Said up front.

  • <input> (an * in the label)<input required>

    Marked required only for the eye

    On the page

    The star is for the eye; a screen reader doesn’t hear it, the browser doesn’t enforce it.

    required says it and enforces it.

  • <input aria-label="Field"><input> (named by its label)

    aria-label hides the label shown

    On the page

    The screen says “Email”, the screen reader “Field”.

    One name, the one shown.

  • autocomplete="off"autocomplete="new-password"

    Autofill turned off

    On the page

    A password manager can’t fill it, so people pick one they can type.

    It offers a strong password.

  • <input><input inputmode="decimal">

    Letters keyboard for a number

    On the page

    People switch keyboards before they can type a number.

    The number pad comes up.

  • <input type="number"><input inputmode="numeric" autocomplete="one-time-code">

    Number field for a code

    On the page

    A number field drops the leading zero and shows spinner arrows.

    A text field with the number pad keeps the code as typed.

  • six <input maxlength="1">one <input autocomplete="one-time-code">

    One value in several boxes

    On the page

    Six boxes for one code: paste and autofill from a text message break.

    One field takes the whole code.

  • <input> (username)<input autocapitalize="none" autocorrect="off" spellcheck="false">

    Autocorrect on an identifier

    On the page

    The phone capitalises and “fixes” the username as it is typed.

    Kept as typed.

  • :invalid { border-red }:user-invalid { border-red }

    Shown as an error before typing

    On the page

    Before anything is typed, the empty required field is already red.

    It waits for the person to try.

  • <button disabled={!valid}><button> + an error on press

    Submit disabled until valid

    On the page

    The button is grey and nothing says why.

    It can be pressed, and says what is missing.

  • input { display: none }input { sr-only }

    Real control removed

    On the page

    The real checkbox is removed: Tab skips it and a screen reader never hears it.

    Hidden only from sight, it stays reachable.

  • First name + Last nameFull name

    Name split in two

    On the page

    Many names don’t split into first and last.

    One field takes any name.

  • pattern="[A-Za-z]+"(any letters)

    Only A to Z allowed

    On the page

    José is told his name is wrong.

    Any name in any script.

  • <button>Submit</button><button>Save changes</button>

    Button says only “Submit”

    On the page

    “Submit” says nothing about what happens.

    The button says it.

  • two <input type="radio"><fieldset><legend>Billing</legend>…

    Options with no group

    On the page

    Each option is read, never the question they answer.

    The group says what is being chosen.

  • aria-describedby="email-hint" (no such id)id="email-hint" on the hint

    Points at a message that is not there

    On the page

    It points at a message that isn’t there.

    The hint is read with the field.

  • <input type="text"><input type="email">

    Plain text field for an email

    On the page

    A plain text field brings a keyboard with no @.

    type="email" brings @ and the browser’s own check.

  • flex-row-reversesource order = visual order

    Drawn in a different order

    On the page

    Drawn right to left, Tab goes against the eye.

    The source order matches what is seen.

  • placeholder="8 or more characters"a hint under the field

    Instructions in the placeholder

    On the page

    The instruction lives in the placeholder: the first keystroke wipes it.

    A hint that stays while typing.

  • <button onclick="save()">Save</button><button>Save</button>

    Script written in the markup

    On the page

    A strict content security policy blocks inline script: the button does nothing.

    The handler is attached from the script file.

  • <html><html lang="fr">

    Page says no language

    On the page

    A screen reader guesses the accent and reads French as English.

    It reads in the page’s language.

  • (no viewport meta)<meta name="viewport" content="width=device-width">

    No viewport set for phones

    On the page

    A phone draws the page 980px wide and shrinks it.

    The page is laid out for the phone.

  • content="width=device-width, user-scalable=no"content="width=device-width"

    Pinch zoom turned off

    On the page

    People who need bigger text can’t pinch to zoom.

    Zoom works.

  • <html>…<!DOCTYPE html><html>…

    Page in quirks mode

    On the page

    With no doctype, boxes and tables size by old rules.

    One line puts the page in standards mode.

  • <div class="content"><main>

    Page with no main

    On the page

    There is nowhere to skip to past the header.

    A main landmark.

  • <header> inside the page body<div> (or a header inside a section)

    More than one page header

    On the page

    A landmark that appears twice says nothing about where.

    One page header.

  • (no <h1>)<h1>Pricing</h1>

    Page with no main heading

    On the page

    Nothing says what the page is.

    An h1 names it.

  • • Fast<br>• Private<ul><li>Fast</li>…</ul>

    List without list markup

    On the page

    The bullets are read as characters, and no list is announced.

    A list says how many items.

  • <li> outside <ul><ul><li>

    List item outside a list

    On the page

    On its own, the item isn’t part of any list.

    Inside a list it is counted.

  • <div onClick><a href> (or <button>)

    Pressable for the mouse only

    On the page

    Pressable with a mouse; Tab skips it.

    A link takes focus and Enter.

  • <a href="#" onClick={remove}><button onClick={remove}>

    Link that goes nowhere

    On the page

    Announced as a link, it deletes something.

    An action is a button.

  • <button disabled="false">Save</button><button>Save</button>

    Value on an on/off attribute

    On the page

    The attribute being there disables it, even with “false”.

    Leave it off to enable.

  • <figure><img></figure><figure><img><figcaption>…</figcaption></figure>

    Figure with no caption

    On the page

    A figure without a caption is a plain image in a box.

    The caption is what makes it a figure.

  • <pre>npm install plumber<pre><code>npm install plumber

    Code block with no <code>

    On the page

    <pre> keeps the spacing; nothing says it is code.

    <code> says so.

  • <pre class="overflow-x-auto"><pre class="overflow-x-auto" tabindex="0">

    Scrolls for the mouse only

    On the page

    The end of the line runs off, and a keyboard can’t scroll to it.

    A stop of its own: arrows scroll it.

  • <pre tabindex="0"><pre tabindex="0" role="region" aria-label="Install command">

    Focus stop with no name

    On the page

    Focus stops on it and nothing is said.

    It says what it holds.

  • <img src="hero.jpg"><img src="hero.jpg" width="320" height="180">

    Image with no size

    On the page

    No room is kept for the picture: when it arrives, the text below jumps down (dashes: where the text was).

    The size is known up front: nothing moves.

  • <img loading="lazy"> (first screen)<img> (eager)

    First-screen image loaded late

    On the page

    Lazy on the first screen, the hero waits for layout before it is even requested.

    It is requested with the page.

  • <img> (below the fold)<img loading="lazy">

    Off-screen images loaded at once

    On the page

    Images nobody sees yet compete with the hero.

    Off-screen ones wait; the hero arrives sooner.

  • fetchpriority="high" on everythingon the hero only

    Everything is high priority

    On the page

    When everything is marked first, the order is lost.

    One high priority: it arrives first.

  • <img src="hero.jpg"><img src="hero.jpg" fetchpriority="high">

    Biggest image not put first

    On the page

    The browser learns the hero matters only after layout.

    Told at once, it fetches it first.

  • <img src="team-2400.jpg"><img srcset="team-600.jpg 600w, team-2400.jpg 2400w" sizes="300px">

    Image far bigger than drawn

    On the page

    A phone downloads the whole 2400px picture for a 300px space.

    srcset lets it fetch a size that fits.

  • <picture><source …></picture><picture><source …><img src="…" alt="…"></picture>

    Picture with no image

    On the page

    Sources only offer files; without an <img>, nothing is drawn.

    The img is what shows.

  • <details><p>…</p><summary><details><summary> first

    Summary is not first

    On the page

    Only a first-child summary is the toggle: this one is hidden with the rest.

    First, it shows and toggles.

  • <summary>Billing <button>Edit</button></summary><summary>Billing</summary>

    Control inside a summary

    On the page

    Pressing Edit also opens the details.

    The button sits beside the summary.

  • summary { list-style: none }(the marker kept, or an icon)

    Toggle with no arrow

    On the page

    Nothing shows that this opens.

    An arrow says it does.

  • <button title="Copy link">a tooltip on hover and focus

    Tooltip from a title

    On the page

    A title shows only on mouse hover: not on a keyboard, not on touch.

    A real tooltip shows on focus too.

  • <video src="tour.mp4"><video src="tour.mp4" width="320" height="180">

    Video with no size

    On the page

    When the first frame arrives, everything below jumps.

    The size is kept from the start.

  • <video src="tour.mp4"><video src="tour.mp4" poster="tour.jpg">

    Video with no poster

    On the page

    Until someone presses play it is a black box.

    A poster shows what it is.

  • <video><video><track kind="captions" src="tour.vtt"></video>

    Video with no captions

    On the page

    With the sound off, or without hearing, there are only pictures.

    Captions carry the words.

  • <video autoplay muted loop><video autoplay muted loop aria-hidden="true" tabindex="-1">

    Background video read as content

    On the page

    A screen reader stops on a video with nothing to say.

    Marked as decoration, it is passed over.

  • <video autoplay><video autoplay muted>

    Plays sound by itself

    On the page

    It starts talking over a screen reader.

    Muted until someone turns it up.

  • <iframe hidden-ish style="width:0"><iframe tabindex="-1" aria-hidden="true">

    Hidden frame that takes focus

    On the page

    Focus disappears into a frame announced as nothing.

    Taken out of the Tab order.