Cometchat a11y

From cometchat/cometchat-skills · View interactive version

Cometchat a11y is an AI agent skill from the GitHub repository cometchat/cometchat-skills. Keep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context,

How to use this skill

Skill file

Ground truth: the UI Kit components are documented as designed targeting WCAG 2.1 Level AA with keyboard navigation built in (the Angular component docs state this most explicitly; note the docs' own caveat that full conformance still requires manual testing — do not assert a blanket AA/VPAT claim to the user without it). Treat AA as the design target, not a certified guarantee. Accessibility failures in a CometChat app are almost always host-side regressions — global CSS, a broken focus order, a container with no accessible name, or motion that ignores the user's preference. Verify component-level a11y claims against the component's own docs page (cometchat-<family>-components → docs-map); this skill owns the host-side discipline the kit can't control.

Use this skill when

An accessibility review (WCAG / Section 508 / ADA / EN 301 549), a screen-reader or keyboard complaint, or "make our chat accessible." Procurement for public-sector, education, healthcare and large enterprises requires this.

Start from what the kit gives you

The kit ships accessible components: keyboard-operable lists/composer, focus handling, and semantics designed targeting AA (the design target — not a certified guarantee; see above). On web it sets ARIA roles and names itself — the conversation/user rosters render as a labelled listbox and manage roving focus — so don't override or strip them. Your job is to not break it and to make the surrounding app equally accessible. Two rules first:

  1. Don't let global CSS leak into the .cometchat subtree (web) — a global outline:none, a low-contrast override, a text-align/flex reset, or a Tailwind base can strip focus rings or break contrast the kit set correctly. Scope your resets away from the kit (RULES.md → CSS isolation).
  2. Give the chat container a real, labelled home — a sized region (a11y needs a visible, non-collapsed surface too) with an accessible name (e.g. an aria-label/landmark on web, an accessibility label on native) so screen-reader users can find and enter it.

The checklist (host-side)

Calls accessibility (if you use calling)

Test it

Common pitfalls

  1. Global CSS stripping focus rings or contrast inside .cometchat — scope resets away.
  2. Icon-only custom buttons with no label — add accessible names.
  3. Unlabelled, collapsed, or unreachable chat container — size it and name it.
  4. Animations ignoring reduced-motion.
  5. Contrast checked in one theme only — check light and dark.
  6. Assuming automated tools are enough — they miss keyboard/reader flow; test manually.

Verify it works

The chat flow is fully keyboard-operable with a visible focus indicator · a screen reader announces the surface, messages, and your controls · contrast passes AA in light and dark · the UI holds at 200% zoom / large type · reduced-motion is honored · RTL mirrors correctly · axe/Lighthouse on the chat screen is clean of contrast/name/ARIA errors.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.