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

label-content-name-mismatch

O que ela faz

Esta skill verifica se os rótulos visíveis correspondem aos nomes que as ferramentas assistivas leem. É para desenvolvedores que criam botões, links e controles com atributos ARIA.

Quando usar

  • ✓Quando um usuário de controle por voz diz o nome visível de um botão e nada acontece.
  • ✓Quando o aria-label de um botão é diferente do seu texto visível.
  • ✓Quando você revisa controles personalizados quanto à acessibilidade.

Link da skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/label-content-name-mismatch/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/label-content-name-mismatch/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

“Você pode verificar se os rótulos dos meus botões correspondem ao que os leitores de tela e o controle por voz anunciam?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente compara o texto visível com os valores de aria-label e aria-labelledby. Ele sugere incluir o texto visível exato no início do nome acessível.

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

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

Align visible labels with accessible names

When the visible label doesn't match the accessible name, voice control users may find it impossible to interact with the element by speaking its name.

Quick Reference

  • Visible text should be part of the accessible name (ARIA label)
  • Ensure speech-to-text users can trigger controls by their visible name
  • Maintain consistency between what is seen and what is read by tech

Check

Compare the visible text of buttons and links with their 'aria-label' or 'aria-labelledby' attributes to ensure the visible text is included in the accessible name.

Fix

Update the ARIA attribute to include the exact string of the visible label text at the beginning of the accessible name.

Explain

Explain how a mismatch between visible labels and accessible names breaks the experience for users of voice recognition software.

Code Review

Review the rendered markup and interactive states that affect Align visible labels with accessible names. 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/label-content-name-mismatch

Perguntas frequentes

Por que usuários de voz precisam de rótulos que correspondam?

A skill diz que usuários de voz costumam falar o nome visível de um controle, então o nome acessível precisa contê-lo.

Onde o texto visível deve ficar no rótulo?

A skill sugere colocar o texto exato do rótulo visível no início do nome acessível.

Como a correção é verificada?

A skill sugere ferramentas de acessibilidade do navegador ou tecnologias assistivas.

Detalhes

Descrição original do autor

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Align visible labels with accessible names. 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
#2910
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas