Accessibility

    ARIA (Accessible Rich Internet Applications)

    A set of HTML attributes that define ways to make web content more accessible to people with disabilities.

    Share

    Key Takeaways

    • The first rule of ARIA: do not use ARIA if a native HTML element provides the semantics. `<button>` beats `<div role='button'>`.
    • ARIA is essential for custom widgets (tabs, accordions, modals) that native HTML cannot fully describe to assistive technology.
    • aria-live regions announce dynamic content changes to screen readers, critical for SPAs and real-time updates.

    Essential ARIA Patterns

    PatternKey ARIAPurpose
    Modal dialogrole='dialog', aria-modal='true', aria-labelledbyAnnounce dialog, trap focus inside
    Tabsrole='tablist/tab/tabpanel', aria-selectedNavigate between tab panels
    Accordionaria-expanded, aria-controlsCommunicate open/closed state
    Dropdown menurole='menu/menuitem', aria-haspopupNavigate menu items with keyboard
    Live regionaria-live='polite/assertive'Announce dynamic content updates

    Use component libraries (shadcn/ui, Radix, Headless UI) that implement these ARIA patterns correctly. Building accessible custom widgets from scratch is error-prone and time-consuming.

    Frequently Asked Questions

    Related Services

    Need Help With Implementation?

    Our team specializes in implementing the solutions described in this glossary.

    Get in Touch