Field Notes
Short, specific articles on the details other guides skip. Every note shows before it tells, and every note ends in a lab or a live example.
Latest notes
Show notes about
-
Twenty-four pixels is a smaller promise than it sounds
WCAG 2.2 asks for pointer targets of 24 by 24 CSS pixels. The spacing exception means a row of 18 px icons can pass and a row of 24 px icons can be hard to hit. Here is the rule, the circle, and the five exceptions, drawn.
-
When the toolbar will not fit
Five icons, a narrow bar, and a 24 px rule that cannot be met as laid out. Adding height does not fix it. Wrapping does. An equal split of the width can leave every icon one pixel short. Here is the order to try fixes in, and when to stop.
-
Tab order is a promise the DOM makes
The Tab key follows the HTML, not the layout. CSS cannot change that order, a positive tabindex hijacks it, and aria-hidden does not remove a stop. One real walk found 162 stops where a list of the markup said 64. Here is why, and how to check.
-
The sticky header that eats your focus
Shift+Tab back up a form and the field you land on slides under the sticky header. The browser scrolled just far enough, and just far enough is behind the bar. WCAG 2.2 calls it focus not obscured. One CSS property fixes it.
-
Where focus goes when a dialog opens
A dialog owes a keyboard user three things. Put focus inside it on open. Keep Tab inside while it is open. Give focus back to the opener on close. Miss any one and the reader is lost behind the dialog or dropped at the top of the page.
-
One brand color cannot serve a light and a dark surface
A link blue used on a navy header and on a pale panel fails on one of them. Moving it to fix the header breaks the panel. The only fix that passes both is two tokens, one per surface. Here are the numbers, and why no single value works.
-
Fix a failing color with the smallest move
A color fails contrast and you want to change it as little as possible. There are two short paths, lightness alone and a mix toward black or white. They often end at the same place, and when they do not, the difference is hue. Here is how far each one travels, with numbers.
-
Charts that still read when printed in grey
A chart passes when it still carries its message on a grayscale printer. That means three lightness levels, not three hues; dash and shape before pattern; and labels on the data instead of a legend. This is the rule every chart on this site follows, written down.
-
Check the number in the browser, not in the tool
A color fixer said 11 failing pairs before and 2 after. The browser said 57 failing elements before and 10 after. Both were true. A verification pass that reads computed styles is the only number worth reporting, and here is what it found.
-
A small decision model sorts documents from page one
A 9-billion-parameter vision model read only the first page of each PDF and named the kind of document 58 times out of 60. It also spotted the scanned pages, ran in under a second, and gave the same answer every time.
-
Alt text is a decision, not a description
The same photo needs five different alt texts on five different pages. If you are describing pixels, you have skipped the only question that matters.
-
Simplified Technical English: what ASD-STE100 is and why accessibility people should care
A controlled language built for aircraft maintenance manuals turns out to be one of the best tools we have for cognitive accessibility and for writing agents. How it works, how it relates to the ISO plain language standard, where it fits, and where it does not.
-
Skip links people actually find
A skip link that is first in the tab order, visible the moment it has focus, and labeled for where it goes. Most skip links fail at least one of those.
-
Hover is a state most people do not have
Touch, keyboard, switch, and voice never hover. A menu, tooltip, or button that appears only on hover does not exist for them.
-
The empty alt is a choice
alt="" tells a screen reader to skip the image on purpose. A missing alt tells it to read the file name. They look similar in the source and could not be more different to a reader.
-
Alt text for charts: the data is the alt
A chart's alt text is one sentence that says what the chart shows. The numbers go in a table next to it, where a reader can move through them. An alt that holds twelve values is unreadable.
-
Terminal colors are a contrast problem too
A terminal theme is sixteen colors of small monospace text. Most themes ship with two of them unreadable, and the light variant fails in a different place than the dark one.
-
Alt text for generated images
When an image came from a model, the prompt is not the alt and the pixels are not the point. The alt carries what the image was made to do on this page.
-
Color is never the only signal
Red for error, green for success, blue for links. Take the color away and ask what is left. If the answer is nothing, the state was never communicated.
-
Build a palette that passes every pair
Not every pair in a palette has to pass. Every pair you use has to. Here is how to build a palette where the allowed pairs are obvious and the forbidden ones are hard to reach for.
-
Reduced motion is not no motion
The reduced-motion setting is a request to cut the motion that causes harm, not a request for a static page. Here is which animations to keep, shorten, and remove.
-
400 percent zoom is a layout test, not an edge case
Zoom a desktop page to 400 percent and you get a 320 pixel wide viewport. If the page cannot reflow into that, it has failed for everyone who needs large text.
-
Contrast ratio vs perceived contrast
WCAG 2 gives one number for a color pair. APCA gives a different one, and sometimes a different verdict. Where they disagree is where the pair is marginal.
-
Reading order is not visual order
CSS can put anything anywhere. Screen readers and the Tab key follow the DOM, not the layout. When the two disagree, the page tells two different stories.
-
The focus ring is the interface
For anyone who moves through a page without a mouse, the focus ring is the cursor. Here is what a great one looks like and why most of them fail.
-
How an agent should decide on alt text
A five-question decision tree an AI agent can follow to choose alt text, in the order that produces the fewest wrong answers.
-
A checklist for code-generating assistants
Eighteen checks an assistant can run on its own HTML and CSS before returning it, each tied to a stable rule id and a test corpus page.
-
Why agents miss focus states
Static analysis cannot see a focus ring. Here is the three-step procedure an agent can run instead, and the one CSS pattern that passes everywhere.
-
Why your focus ring vanishes in dark mode
A ring designed on a white mockup is a coin toss once the page can be dark. The fix is not a darker ring. It is a second tone.
One new note a month, more when a lab lands. Subscribe with the RSS feed.