Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #2727

aria-hidden-body

O que ela faz

Esta skill verifica se o body de uma página web nunca tem aria-hidden definido como true. Ela é para desenvolvedores que gerenciam modais e sobreposições de página.

Quando usar

  • ✓Quando você cria código que oculta o fundo enquanto um modal está aberto.
  • ✓Quando um usuário de leitor de tela relata que nada do site pode ser lido.
  • ✓Quando você revisa scripts que alteram atributos do elemento body.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-hidden-body/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Verifique meu código de modal para garantir que ele nunca defina aria-hidden no elemento body.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente procura no código aria-hidden no body e move a ocultação para contêineres de fundo específicos.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Do not use aria-hidden on the document body

Setting aria-hidden="true" on the body effectively silences the entire application for screen reader users, rendering the site completely unusable.

Quick Reference

  • The <body> element should never have aria-hidden="true"
  • Hiding the body makes the entire page invisible to assistive technologies
  • Often happens accidentally when managing modal states

Check

Check if the <body> element has aria-hidden="true" applied at any point in the lifecycle.

Fix

Remove aria-hidden="true" from the <body> and use it only on specific background containers when modals are open.

Explain

Explain the catastrophic impact of hiding the body element from assistive technologies.

Code Review

Review the rendered markup and interactive states that affect Do not use aria-hidden on the document body. 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-hidden-body

Perguntas frequentes

O que acontece se o body estiver oculto?

A skill diz que o site inteiro fica invisível para leitores de tela, o que o torna inutilizável para eles.

Como devo ocultar o fundo quando um modal está aberto?

Aplique aria-hidden apenas a contêineres de fundo específicos enquanto o modal estiver aberto.

Esse é um erro comum?

A skill diz que ele costuma acontecer por acidente ao gerenciar estados de modal.

Detalhes

Descrição original do autor

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Do not use aria-hidden on the document body. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#2727
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas