smukh/a11y-agent-skills

dialog-accessibility

Reviews or repairs modal and non-modal dialog behavior, including naming, initial focus, containment, Escape, inert background, close controls, and focus restoration.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/smukh/a11y-agent-skills --skill dialog-accessibility

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Dialog accessibility

Verify the whole open–operate–close lifecycle.

Workflow

  1. Decide whether native <dialog> meets the product behavior before retaining

a custom dialog.

  1. Open it from a known invoker and apply

references/dialog-checklist.md.

  1. Verify the accessible name and any useful description, deliberate initial

focus, containment for a modal, background inertness, keyboard-operable close control, Escape behavior, and restoration to the logical invoker.

  1. Test close by every offered path and test DOM removal or route changes that

invalidate the invoker.

  1. Replay at mobile width and high zoom. Assess nested dialogs as a separate

high-risk interaction.

  1. Save a bounded keyboard journey and rerun the relevant deterministic scan

after repairs.

Boundaries

Do not force focus to the first interactive control when a heading or explanatory content is the more useful starting point. Do not add role=dialog without implementing the interaction model. A passing axe scan does not prove containment, restoration, or mobile usability.

du même dépôt

Autres Skills

Tous les Skills