Accessible UI Component Series

· 1 min read

A short series of accessible UI components built on one shared “Codespud” design-token file, so I could test ARIA Authoring Practices patterns myself instead of trusting a component library blindly.

Two more pieces from the same series already have full write-ups: the accessible tab container and the focus-within fixes for common hover-only UI patterns.

Accordion

Disclosure pattern using aria-expanded, aria-controls, and role="region" per the ARIA APG accordion pattern, with animated expand/collapse and visible focus states.

Accessible buttons in claymorphic styling

Proof that an on-trend visual style (claymorphic / soft-UI) doesn’t have to come at the cost of accessible markup — real <button> elements, visible focus rings, and sufficient contrast underneath the styling.

Shared design tokens

Both components above (and the tab container/accordion pair) pull from one typography and color token file — a small design system built with accessible contrast ratios in mind from the start.

More CodePen experiments: codepen.io/chrisbautista

By @codespud

DISCLAIMER This is my personal weblog and learning tool. The content within it is exactly that – personal. The views and opinions expressed on the posts and the comments I make on this Blog represent my own and not those of people, institutions or organisations I am affiliated with unless stated explicitly. My Blog is not affiliated with, neither does it represent the views, position or attitudes of my employer, their clients, or any of their affiliated companies.

© 2006 - 2026, Copyright - codespud.com · RSS