Saltar al contenido
Skillpedia
Sitios e interfaces (frontend)75 mil · #2737

aria-roles

Qué hace

Esta skill comprueba que los valores de rol ARIA sean válidos y estén bien escritos. Es para desarrolladores que añaden roles a componentes o plantillas personalizadas.

Cuándo usarla

  • ✓Cuando añades atributos role a un elemento personalizado.
  • ✓Cuando un rol parece no tener ningún efecto en la página.
  • ✓Cuando revisas marcado que usa nombres de rol personalizados o poco habituales.

Link de la skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-roles/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-roles/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Busca en mis plantillas atributos role mal escritos o que no sean estándar y corrígelos.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Tu agente busca valores de rol que no estén en la lista estándar, los corrige y sugiere un control HTML nativo cuando eso es más sencillo.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Use valid ARIA role values

Invalid or misspelled ARIA roles are ignored by browsers and assistive technologies, rendering the intended accessibility features useless and potentially confusing users.

Quick Reference

  • Use only standard ARIA roles defined in the W3C specification
  • Avoid typos or non-existent roles (e.g., use checkbox, not check-box)
  • Ensure roles are applied to appropriate HTML elements
  • Prefer native HTML controls over custom ARIA widgets whenever possible

Check

Search for any role attributes that use non-standard or misspelled ARIA role values.

Fix

Replace invalid ARIA roles with the correct, standard values from the WAI-ARIA specification. When a native <button>, <input>, <select>, or other semantic element can replace the custom widget, prefer that change over adding more ARIA.

Explain

Explain why using standardized ARIA roles is critical for ensuring that assistive technologies can interpret and announce elements correctly, and why native HTML controls are usually more reliable than recreating them with ARIA.

Code Review

Review the rendered markup and interactive states that affect Use valid ARIA role values. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/aria-roles

Preguntas frecuentes

¿Qué pasa con un rol mal escrito?

La skill indica que se ignora, así que la función de accesibilidad prevista no funciona.

¿Debo usar ARIA para controles personalizados?

La skill sugiere primero controles HTML nativos, como button o select, cuando pueden hacer el trabajo.

¿Puedes dar un ejemplo de error?

La skill da como ejemplo de rol no válido check-box en lugar de checkbox.

Detalles

Descripción original del autor

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use valid ARIA role values. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Popularidad

Estrellas en GitHub
75 mil
Posición en el ranking
#2737
Licencia
MIT
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas