Write ARIA for people, not for AI agents
AI agents read our pages through the accessibility tree, but ARIA written for them hurts the people it was made for.
Notes on frontend development, accessibility and web performance.
AI agents read our pages through the accessibility tree, but ARIA written for them hurts the people it was made for.
The ARIA tabs pattern looks small, but it hides a dozen decisions. Here is the markup, the keyboard code and a way of writing CSS that can't drift from what screen readers are told, with a position on every contested point.
<details> element without JavaScriptWith interpolate-size and ::details-content, the <details> element opens and closes smoothly. Browsers without support open it instantly, as they always have.